This commit is contained in:
Miek Gieben 2011-03-29 10:57:36 +02:00
parent 5325936b7b
commit 4b0bee3c94
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ func main() {
}
// Need to think about it... Config
server, _ := dns.FromFile("/etc/resolv.conf")
nameserver := "@" + server[0]
c, _ := dns.ClientConfigFromFile("/etc/resolv.conf")
nameserver := "@" + c.Servers[0]
qtype := uint16(dns.TypeA) // Default qtype
qclass := uint16(dns.ClassINET) // Default qclass
var qname []string