fix a stupid mistake "undefined: zone"

This commit is contained in:
Masa Sekimura 2015-09-30 09:42:47 -07:00
parent a9a71b9628
commit 7dfd5c04dd
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ func ExampleDS() {
config, _ := dns.ClientConfigFromFile("/etc/resolv.conf")
c := new(dns.Client)
m := new(dns.Msg)
zone = "miek.nl"
zone := "miek.nl"
m.SetQuestion(dns.Fqdn(zone), dns.TypeDNSKEY)
m.SetEdns0(4096, true)
r, _, err := c.Exchange(m, config.Servers[0]+":"+config.Port)