Hi, I have a problem with resolving DNS requests from a Raspberry Pi 3B+ that is running pi-hole as a server.
For example, I get this when using dig to find my external IP address:
$this->bbcode_second_pass_code('', '$ dig +short myip.opendns.com @resolver1.opendns.com
dig: parse of /etc/resolv.conf failed')
My /etc/resolv.conf:
$this->bbcode_second_pass_code('', '$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 192.168.1.153
nameserver 192.168.1.1
nameserver fe80::1%2')
IP 192.168.1.153 is the machine.
Also, if I try to update pi-hole ad-lists, I get an error related:
$this->bbcode_second_pass_code('', '$ pihole -g
[✗] DNS resolution is currently unavailable')
The thing is that it can actually resolve names, as I can ping anywhere:
$this->bbcode_second_pass_code('', '$ ping gnu.org
PING gnu.org (208.118.235.148) 56(84) bytes of data.
64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=1 ...')
I searched in pi-hole forums and asked people about it and they say it doesn't seem to be related with pi-hole, but a general DNS resolution issue:
https://aur.archlinux.org/packages/pi-hole-server
Thanks!