gofmt and revert unnecessary changes
This commit is contained in:
parent
a14e77725f
commit
a9a71b9628
|
@ -161,8 +161,8 @@ func TestClientEDNS0Local(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example_updateLeaseTSIG shows how to update a lease signed with TSIG.
|
// ExampleTsigSecret_updateLeaseTSIG shows how to update a lease signed with TSIG.
|
||||||
func Example_updateLeaseTSIG() {
|
func ExampleTsigSecret_updateLeaseTSIG() {
|
||||||
m := new(Msg)
|
m := new(Msg)
|
||||||
m.SetUpdate("t.local.ip6.io.")
|
m.SetUpdate("t.local.ip6.io.")
|
||||||
rr, _ := NewRR("t.local.ip6.io. 30 A 127.0.0.1")
|
rr, _ := NewRR("t.local.ip6.io. 30 A 127.0.0.1")
|
||||||
|
|
|
@ -3,9 +3,10 @@ package dns_test
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/miekg/dns"
|
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Retrieve the MX records for miek.nl.
|
// Retrieve the MX records for miek.nl.
|
||||||
|
@ -31,11 +32,11 @@ func ExampleMX() {
|
||||||
|
|
||||||
// Retrieve the DNSKEY records of a zone and convert them
|
// Retrieve the DNSKEY records of a zone and convert them
|
||||||
// to DS records for SHA1, SHA256 and SHA384.
|
// to DS records for SHA1, SHA256 and SHA384.
|
||||||
func ExampleDNSKEY() {
|
func ExampleDS() {
|
||||||
config, _ := dns.ClientConfigFromFile("/etc/resolv.conf")
|
config, _ := dns.ClientConfigFromFile("/etc/resolv.conf")
|
||||||
c := new(dns.Client)
|
c := new(dns.Client)
|
||||||
m := new(dns.Msg)
|
m := new(dns.Msg)
|
||||||
zone := "miek.nl"
|
zone = "miek.nl"
|
||||||
m.SetQuestion(dns.Fqdn(zone), dns.TypeDNSKEY)
|
m.SetQuestion(dns.Fqdn(zone), dns.TypeDNSKEY)
|
||||||
m.SetEdns0(4096, true)
|
m.SetEdns0(4096, true)
|
||||||
r, _, err := c.Exchange(m, config.Servers[0]+":"+config.Port)
|
r, _, err := c.Exchange(m, config.Servers[0]+":"+config.Port)
|
||||||
|
|
|
@ -633,7 +633,7 @@ moutamassey NS ns01.yahoodomains.jp.
|
||||||
// moutamassey.0-g.name.name. 10800 IN NS ns02.yahoodomains.jp.
|
// moutamassey.0-g.name.name. 10800 IN NS ns02.yahoodomains.jp.
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleNewRR_hip() {
|
func ExampleHIP() {
|
||||||
h := `www.example.com IN HIP ( 2 200100107B1A74DF365639CC39F1D578
|
h := `www.example.com IN HIP ( 2 200100107B1A74DF365639CC39F1D578
|
||||||
AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p
|
AwEAAbdxyhNuSutc5EMzxTs9LBPCIkOFH8cIvM4p
|
||||||
9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ
|
9+LrV4e19WzK00+CI6zBCQTdtWsuxKbWIy87UOoJTwkUs7lBu+Upr1gsNrut79ryra+bSRGQ
|
||||||
|
@ -684,7 +684,7 @@ b1slImA8YVJyuIDsj7kwzG7jnERNqnWxZ48AWkskmdHaVDP4BcelrTI3rMXdXF5D
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleNewRR_soa() {
|
func ExampleSOA() {
|
||||||
s := "example.com. 1000 SOA master.example.com. admin.example.com. 1 4294967294 4294967293 4294967295 100"
|
s := "example.com. 1000 SOA master.example.com. admin.example.com. 1 4294967294 4294967293 4294967295 100"
|
||||||
if soa, err := NewRR(s); err == nil {
|
if soa, err := NewRR(s); err == nil {
|
||||||
fmt.Println(soa.String())
|
fmt.Println(soa.String())
|
||||||
|
|
Loading…
Reference in New Issue