Skip to content

Tailnet not able to resolve DNS queries when using split dns  #36

Description

@leonitousconforti

My DHCP on my edgerouter has the domain internal.mywebsite.com and I have split dns enabled on my tailnet, so any hostnames that start with internal.mywebsite.com should use the DNS of my edgerouter. I installed tailscale on my edgerouter and it was mostly working fine, I could access my internal services by IP but not by hostname when routing through my tailnet (both worked when locally though). I rechecked my tailnet split DNS configuration, but everything looked good.

Essentially I could:
ping 192.168.0.1 (ping the edgerouter gateway and dhcp server, locally or through my tailnet)
ping 192.168.0.2 (ping my internal service, locally or through my tailnet)
dig @192.168.0.1 host.internal.mywebsite.com -> 192.168.0.2 (ONLY when locally)

But I could not:
dig @192.168.0.1 host.internal.mywebsite.com
when routing through my tailnet.

What I ended up doing was on the edgerouter:

  1. Navigate to services > DNS > DNS Forwarding
  2. Add an "other" listen-on interface
  3. list tailscale0 in the custom interface input box

And now dig @192.168.0.1 host.internal.mywebsite.com -> 192.168.0.2 works when routing through my tailnet.

Is this something that should be added to the readme or to the setup script? I'm also not sure if this was the best way to resolve my issue, so I am welcome to hearing others suggestions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions