Skip to content

Commit

Permalink
tun: replace the DNS client in netstack with net.Resolver
Browse files Browse the repository at this point in the history
Use the net.Resolver DNS client to send domain lookups to the server
specified as a CreateNetTUN parameter. The net package's DNS client
handles DNS request and response parsing when PreferGo is true.

Like the previous DNS client it replaces, the net.Resolver instances
also sends DNS queries over the WireGuard connection. Tested on and with
support from Fly.io.

Signed-off-by: Ben Burkert <[email protected]>
  • Loading branch information
benburkert committed Mar 6, 2021
1 parent 7e3b837 commit 4b36949
Showing 1 changed file with 58 additions and 466 deletions.
Loading

0 comments on commit 4b36949

Please sign in to comment.