forty2 Posted November 17, 2022 Share Posted November 17, 2022 It would be nice if there were a way to specify DNS search domains in the Wireguard peer config. In the config file, it's specified as extra comma-separated values in the same `DNS=` field as peer DNS servers. I'd hoped I could just add my search domain in that field, but apparently there's some form validation going on that won't allow me to type a domain name into that field. Quote Link to comment
Eddie Seelke Posted January 4 Share Posted January 4 I think it must be an IP address. I added my router IP address into the Peer DNS Server field and I can access local domains without issue. Quote Link to comment
forty2 Posted January 4 Author Share Posted January 4 Yes, the field is currently validating that it has to be an IP address. The issue for me is that I have my home network set up such that the local domain names are things like "hostname.home.domain.other.stuff". If I just add the IP address to the DNS field, I can use those fully-qualified names, but I'd like to be able to use just "hostname". Typically that's done by setting the DNS search domains, which Wireguard does actually support, but for some reason they've implemented it as an add-on to the DNS option instead of as its own option 😞 The end result is that the validation (which makes sense if the option is only for DNS servers) is preventing me from setting a related-but-separate option for search domains. Quote Link to comment
Eddie Seelke Posted January 10 Share Posted January 10 You are right, using Wireguard I can access local host.domain, but not hostname only. I tried using the Cloudflare tunnel and it was the same. I could reach host.domain, but not hostname only. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.