Trying to update gravity but get DNS resolution unavailable

Expected Behaviour:

Dashboard, Tools => Update Gravity

I have Tailscale installed. I followed this instruction to install. https://tailscale.com/kb/1114/pi-hole

Actual Behaviour:

DNS resolution is currently unavailable
Waiting until DNS resolution is available.........

Debug Token:

I can't upload the Token. I get this error:
[?] Would you like to upload the log? [y/N] y
* Using curl for transmission.
* curl failed, contact Pi-hole support for assistance.
* Error message: curl: (6) Could not resolve host: tricorder.pi-hole.net

[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.
  • A local copy of the debug log can be found at: /var/log/pihole/pihole_debug.log

Could you provide additional information such as:

  • Dns settings in tailscale
  • Outupt of cat /etc/resolv.conf
  • and sudo tailscale dns status
    You can remove sentitive information such as tailnet name or ip.

resolv.conf:

resolv.conf(5) file generated by tailscale

For more info, see Why is resolv.conf being overwritten? · Tailscale Docs

DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN

nameserver xxx.xxx.xxx.xxx
search xxx-xxxxxxx.ts.net
~


tailscale dns status output:

=== 'Use Tailscale DNS' status ===

Tailscale DNS: enabled.

Tailscale is configured to handle DNS queries on this device.
Run 'tailscale set --accept-dns=false' to revert to your system default DNS resolver.

=== MagicDNS configuration ===

This is the DNS configuration provided by the coordination server to this device.

MagicDNS: enabled tailnet-wide (suffix = xxx-xxxxxx.ts.net)

Other devices in your tailnet can reach this device at raspberrypi.xxx-xxxxxx.ts.net.

Resolvers (in preference order):

  • 100.101.xxx.xx

Split DNS Routes:

  • ts.net. -> 199.xxx.xxx.xx
  • ts.net. -> 2620:111:8007::xx

Search Domains:

  • xxx-xxxxxx.ts.net

=== System DNS configuration ===

This is the DNS configuration that Tailscale believes your operating system is using.
Tailscale may use this configuration if 'Override Local DNS' is disabled in the admin console,
or if no resolvers are provided by the coordination server.

Nameservers:

  • 192.168.1.1
  • 2600:4040:2869:d500::1

Search domains:

  • mynetworksettings.com

[this is a preliminary version of this command; the output format may change in the future]

If I posted anything that is sensitive, please delete once you are finished. Thanks.

Your Issue occurs because pihole is using itself as dns-server.
During an update pihole is often temporarily unable to resolve dns.

You should configure your pihole to use an upstream dns-server for its own queries( or any server not being itself).
If you want filtering / analytic for the pihole machine itself I recommend having a /etc/resolv.conf similar to me:

nameserver 127.0.0.1                                                                                                                                
nameserver 1.1.1.1

For this you need to disable other services overriding /etc/resolv.conf
To avoid tailscale changing the dns-server run sudo tailscale set --accept-dns=false
You may need to set your networking service to ignore dns from dhcp.

For the update you can just edit /etc/resolv.conf, just note that tailscale(unless disabled) or your networking service( like networkmanager) may override that file on boot.

Thank you.

Trying to make this flag permanent on reboots.
I added this line in /etc/default/tailscaled:
# Extra flags you might want to pass to tailscaled.

FLAGS="-accept-dns=false"

In sudo systemctl edit tailscaled I moved this line to above the comment line.

EnvironmentFile=/etc/default/tailscaled

Are there any other options that I should enable in this file?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.