[netstack] Move dns package to fuchsia.googlesource.com/garnet/go/src/netstack/dns.

We'd like to reference some Fuchsia-specific features directly in the
implementation and potentially move the DNS client out of the netstack
process entirely.

In addition, upstream doesn't have a DNS package and we'd like to avoid
upstreaming this if we're potentially going to move the DNS client out
of netstack later anyway.

Change-Id: Ic2d21a6ab01d634093ae8cc486535ff83f7b7209
6 files changed
tree: f872dc855e86845b30b748c6386ab358347572fe
  1. dhcp/
  2. ilist/
  3. sleep/
  4. tcpip/
  5. tmutex/
  6. waiter/
  7. AUTHORS
  8. CONTRIBUTING.md
  9. CONTRIBUTORS
  10. LICENSE
  11. README.fuchsia
  12. README.md
README.md

Netstack

Netstack is a network stack written in Go.

Getting started

Try it out on Linux by installing the tun_tcp_echo demo:

go install github.com/google/netstack/tcpip/sample/tun_tcp_echo

Create a TUN device with:

[sudo] ip tuntap add user <username> mode tun <device-name>
[sudo] ip link set <device-name> up
[sudo] ip addr add <ipv4-address>/<mask-length> dev <device-name>

Then run with:

tun_tcp_echo <device-name> <ipv4-address> <port>

Contributions

We would love to accept contributions, but we have not yet worked out how to handle them. Please contact us before sending any pull requests.

Whatever we do decide on will require signing the Google Contributor License. Please see CONTRIBUTING.md for more details.

Disclaimer

This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.