2010-12-22 22:26:50 +11:00
|
|
|
package dns
|
|
|
|
|
|
|
|
// Test EDNS RR records
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestEDNS_RR(t *testing.T) {
|
2010-12-24 21:50:42 +11:00
|
|
|
edns := new(RR_OPT)
|
|
|
|
edns.Hdr.Name = "." // must . be for edns
|
2010-12-30 23:42:52 +11:00
|
|
|
edns.Hdr.Rrtype = TypeOPT
|
2010-12-24 21:50:42 +11:00
|
|
|
edns.Hdr.Class = ClassINET
|
|
|
|
edns.Hdr.Ttl = 3600
|
|
|
|
edns.Option = make([]Option, 1)
|
|
|
|
edns.Option[0].Code = OptionCodeNSID
|
|
|
|
edns.Option[0].Data = "lalalala"
|
|
|
|
//t..Logf("%v\n", edns)
|
2010-12-22 22:26:50 +11:00
|
|
|
}
|