Documentation ¶ Index ¶ func LoopbackNames(t *testing.T, first string, rest ...string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoopbackNames ¶ func LoopbackNames(t *testing.T, first string, rest ...string) Replaces net.DefaultResolver with a resolver that resolves configured names to 127.0.0.1 and fails to resolve any other name. Uses t.Cleanup to restore resolver after the test. Types ¶ This section is empty. Source Files ¶ View all Source files dnstest.go Click to show internal directories. Click to hide internal directories.