]> Cypherpunks repositories - gostls13.git/commit
Use /etc/hosts when resolving names.
authorYves Junqueira <yves.junqueira@gmail.com>
Fri, 15 Jan 2010 21:43:14 +0000 (13:43 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 15 Jan 2010 21:43:14 +0000 (13:43 -0800)
commitd6054fcd88e04e0c7bd0bae92f51883d4f5e3e08
tree1084d36c5bb19777fa8bcd1d2fda49bc4cfc0cc2
parent01b4f2dd2394a042313db0f6af823bbc54a09798
Use /etc/hosts when resolving names.

http://code.google.com/p/go/issues/detail?id=313

This conflics with Chris' patch at:
https://golang.org/cl/181063

But I believe this is more complete since it has a simple caching and proper tests.

R=cw, rsc
CC=golang-dev
https://golang.org/cl/183066
src/pkg/net/Makefile
src/pkg/net/dnsclient.go
src/pkg/net/hosts.go [new file with mode: 0644]
src/pkg/net/hosts_test.go [new file with mode: 0644]
src/pkg/net/hosts_testdata [new file with mode: 0644]
src/pkg/net/ip.go