Go DNS Library that exposes various DNS primitives to the user such as:
- DNS Servers
- Models for the DNS format
- Various DNS constants
- etc.
Besides that it sports a high-level API to enable simple programs that want to query DNS servers and not bother with the nitty-gritty.
This demonstrates how you can make a simple DNS query.
package main
import (
"fmt"
"github.com/4thel00z/libdns/v1"
"github.com/4thel00z/libdns/v1/pkg/libdns/utils"
)
func main() {
response, err := v1.SimpleQueryOnce(utils.CloudflarePrimary, "ransomware.host", utils.A, utils.InternetClass, 10)
if err != nil {
panic(err)
}
fmt.Printf("%v", response)
}
- Add parsing the response portion ☑
- Add tests ☑
- Add dns record constants ☑
- Add question parsing ☑
- Add high-level API (first high-level API added) ☐
- Add documentation ☐
- Add examples ☐
This project has drawn inspiration from go-dnsquery.
This project is licensed under the GPL-3 license.