DNS client and server package. See godoc for details & examples.
benburkert / dns Goto Github PK
View Code? Open in Web Editor NEWDNS client & server package for Go
Home Page: https://godoc.org/github.com/benburkert/dns
License: MIT License
DNS client & server package for Go
Home Page: https://godoc.org/github.com/benburkert/dns
License: MIT License
DNS client and server package. See godoc for details & examples.
The text records seems to be failing and not produce correct values.
I am trying to use TXT record to automate with letsencrypt and it says TXT records doesn't gets resolved.
I would like to use this library for a local DNS client cache, but I don't see anything for setting timeouts for the handler. It's possible to use context.Context to define a timeout with a custom net.Resolver.
const timeout = 10 * time.Millisecond
ctx, cancel := context.WithTimeout(context.TODO(), timeout)
defer cancel() // important to avoid a resource leak
var r net.Resolver
names, err := r.LookupMX(ctx, "127.0.0.1")
I like to use dns.ResolveMux
to route different domain to different nameserver and with dns.Cache
enabled, but i can not find an ideal way to integrate both of them. Any idea to help? Thanks for wonderful library!
If the fqdn passed to MessageWriter.Reply lacks a trailing dot then compressor.Pack will panic at line 79 due to slice bound being out of range.
A simple way to replicate it is to change TestQuestionPackUnpack to include a question like this:
question: Question{
Name: "google.com",
Type: TypeAAAA,
Class: ClassIN,
},
I'm not sure whether the right fix is to return an error due to the malformed name, or to silently append a dot, but it seems like something a typical user is going to run across a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.