Wireguard: DNS search domains


Recommended Posts

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.

Link to comment
  • 1 month later...

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.

Link to comment

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.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.