Wenn ich den Befehl pihole -g ausführe bekomme ich folgenden Fehler. Wenn ich allerdings in der resolv.conf Datei den Eintrag von nameserver fd00::ab34:d1ef:4f58:578c in nameserver 192.168.178.1 ändere funktioniert alles. Die resolv.conf wird allerdings immer wieder zurückgesetzt. Wie kann man das Problem beheben ohne immer wieder den Eintrag zu ändern?
bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
[✗] DNS resolution is currently unavailable
[i] Time until retry: 119
Benutzte Hardware
Raspberry Pi Zero
FritzBox 7590
Einstellungen in der FritzBox
Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> IPv4 Einstellungen -> Lokaler DNS Server -> IP vom PiHole
Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> IPv6 Einstellungen -> Unique Local Addresses -> Unique Local Addresses (ULA) zuweisen, solange keine IPv6-Internetverbindung besteht (empfohlen)
Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> IPv6 Einstellungen -> DNSv6-Server im Heimnetz -> IPv6 vom PiHole
Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> IPv6 Einstellungen -> DHCPv6-Server im Heimnetz -> Nur DNS-Server zuweisen
For Pi-OS/Raspbian, dhcpcd is responsible for populating /etc/resolv.conf:
pi@ph5b:~ $ man dhcpcd
[..]
DESCRIPTION
dhcpcd is an implementation of the DHCP client specified in RFC 2131.
dhcpcd gets the host information (IP address, routes, etc) from a
DHCP server and configures the network interface of the machine on
which it is running. dhcpcd then runs the configuration script which
writes DNS information to resolvconf(8), if available, otherwise di‐
rectly to /etc/resolv.conf.
Did you set static IP details?
pi@ph5b:~ $ man dhcpcd.conf
[..]
static value
Configures a static value. If you set ip_address then dhcpcd
will not attempt to obtain a lease and will just use the
value for the address with an infinite lease time. If you
set ip6_address, dhcpcd will continue auto-configuration as
normal.
Here is an example which configures two static address, over‐
riding the default IPv4 broadcast address, an IPv4 router,
DNS and disables IPv6 auto-configuration. You could also use
the inform6 command here if you wished to obtain more infor‐
mation via DHCPv6. For IPv4, you should use the inform
ipaddress option instead of setting a static address.
interface eth0
noipv6rs
static ip_address=192.168.0.10/24
static broadcast_address=192.168.0.63
static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
fd51:42f8:caae:d92e::1
Here is an example for PPP which gives the destination a de‐
fault route. It uses the special destination keyword to in‐
sert the destination address into the value.
interface ppp0
static ip_address=
destination routers
You can set static IP details in below file at the bottom (below example is my Pi-hole host):
The static domain_name_servers= value will end up in resolv.conf as a nameserver.
The 10.0.0.1 DNS server address above is my router but you could also opt to supply your ISP DNS servers or public DNS providers like for example Google, Cloudflare etc:
When change any and reboot, you can see what dhcpcd does with below:
journalctl --full --no-pager -u dhcpcd
It doesnt show the populating of resolv.conf though.
Below guide to configure Fritzbox doesnt show how to setup for IPv6:
But you dont need IPv6 DNS for your clients to resolve DNS names to IPv6 or IPv4 IP's.
Clients can resolve IPv6 addresses through IPv4 and vice versa (KISS):
Something is wrong with your locals.
What does below show?
locale -a
If de_DE.UTF-8 is listed in below file and hashed out (like below), try unhash it and save/exit: