Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tun: replace the DNS client in netstack with net.Resolver #43

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Mar 6, 2021

  1. mod: bump x/sys

    Signed-off-by: Jason A. Donenfeld <[email protected]>
    zx2c4 committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    b96fc17 View commit details
    Browse the repository at this point in the history
  2. conn: linux: unexport mutex

    Signed-off-by: Jason A. Donenfeld <[email protected]>
    zx2c4 committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    1bc997d View commit details
    Browse the repository at this point in the history
  3. memmod: do not use IsBadReadPtr

    It should be enough to check for the trailing zero name.
    
    Signed-off-by: Jason A. Donenfeld <[email protected]>
    zx2c4 committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    4b7c180 View commit details
    Browse the repository at this point in the history
  4. memmod: use resource functions from x/sys

    Signed-off-by: Jason A. Donenfeld <[email protected]>
    zx2c4 committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    c1b1fd4 View commit details
    Browse the repository at this point in the history
  5. winpipe: move syscalls into x/sys

    Signed-off-by: Jason A. Donenfeld <[email protected]>
    zx2c4 committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    7e3b837 View commit details
    Browse the repository at this point in the history
  6. tun: replace the DNS client in netstack with net.Resolver

    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]>
    benburkert committed Mar 6, 2021
    Configuration menu
    Copy the full SHA
    4b36949 View commit details
    Browse the repository at this point in the history