Last active
July 16, 2018 13:42
-
-
Save alarsyo/1f1141c66864131dabb6bbaea8690e2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func resolveCustomAddress (c txtdirect.Config) { | |
net := net.Resolver { | |
PreferGo: true, | |
Dial: func (ctx context.Context, network, address string) (Conn, err) { | |
d := net.Dialer{} | |
return d.DialContext(ctx, network, c.Resolver) | |
}, | |
} | |
txts := net.LookupTXT("example.com") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment