Add actual type any as RR_ANY
This commit is contained in:
parent
18596dd3f8
commit
8c5049bd06
13
types.go
13
types.go
|
@ -161,6 +161,19 @@ func NewRR(i uint16) RR {
|
|||
return r
|
||||
}
|
||||
|
||||
type RR_ANY struct {
|
||||
Hdr RR_Header
|
||||
// Does not have any rdata
|
||||
}
|
||||
|
||||
func (rr *RR_ANY) Header() *RR_Header {
|
||||
return &rr.Hdr
|
||||
}
|
||||
|
||||
func (rr *RR_ANY) String() string {
|
||||
return rr.Hdr.String()
|
||||
}
|
||||
|
||||
type RR_CNAME struct {
|
||||
Hdr RR_Header
|
||||
Cname string "domain-name"
|
||||
|
|
Loading…
Reference in New Issue