* Search domains with wg-quick
@ 2019-01-24 3:37 Caleb Spare
0 siblings, 0 replies; 1+ messages in thread
From: Caleb Spare @ 2019-01-24 3:37 UTC (permalink / raw)
I use Wireguard in a typical sort of "corp VPN" scenario. I use
wg-quick to bring my wg0 up and down.
What is the best way to add a search domain when my wg0 is up?
After reading the wg-quick source, I came up with this proof of
concept that *does* work on my machine:
PostUp = echo 'search mysite.com' | resolvconf -a tun.search -m 0 -x
PreDown = resolvconf -d tun.search
However, there are some problems:
- That "tun.search" string is just something I made up after seeing
the "tun.wg0" that wg-quick uses. What should I put there?
- I don't even know how the -m 0 -x flags work, or whether they're
necesary. (There was an interesting discussion between Jason and
Lennart Poettering over here, though:
- I guess I need to take some different approach in macOS; some
googling talks about "networksetup -setsearchdomains"?
Anyway, would it be reasonable to teach wg-quick about search domains,
or is doing some kind of PostUp/PreDown stuff going to be my only
BTW in OpenVPN we do this with
push "dhcp-option DOMAIN mysite.com"
push "dhcp-option DNS 184.108.40.206"
WireGuard mailing list
^ permalink raw reply [flat|nested] 1+ messages in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 3:37 Search domains with wg-quick Caleb Spare
WireGuard Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/ public-inbox