fix q
This commit is contained in:
parent
5325936b7b
commit
4b0bee3c94
|
@ -25,8 +25,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Need to think about it... Config
|
// Need to think about it... Config
|
||||||
server, _ := dns.FromFile("/etc/resolv.conf")
|
c, _ := dns.ClientConfigFromFile("/etc/resolv.conf")
|
||||||
nameserver := "@" + server[0]
|
nameserver := "@" + c.Servers[0]
|
||||||
qtype := uint16(dns.TypeA) // Default qtype
|
qtype := uint16(dns.TypeA) // Default qtype
|
||||||
qclass := uint16(dns.ClassINET) // Default qclass
|
qclass := uint16(dns.ClassINET) // Default qclass
|
||||||
var qname []string
|
var qname []string
|
||||||
|
|
Loading…
Reference in New Issue