kentyson / dnsutil

dns dig for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dnsutil

####Golang DNS dig功能库

dig:=dnsutil.new(Dig)
dig.SetDNS("8.8.8.8") //or ns.xxx.com
//dig.SetEDNS0ClientSubnet("1.1.1.1") 
a,err:=dig.A("google.com")  //same -> dig a @8.8.8.8 +client=1.1.1.1

About

dns dig for Golang

License:Apache License 2.0


Languages

Language:Go 100.0%