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.
  • Loading branch information
benburkert committed Mar 2, 2021
1 parent 70b7b71 commit c98da74
Showing 1 changed file with 58 additions and 466 deletions.
Loading

0 comments on commit c98da74

Please sign in to comment.