Remove these methods
This commit is contained in:
parent
d2a064e390
commit
53de6bd81c
16
update.go
16
update.go
|
@ -34,22 +34,6 @@
|
||||||
//
|
//
|
||||||
package dns
|
package dns
|
||||||
|
|
||||||
func (u *Msg) Zone() []Question {
|
|
||||||
return u.Question
|
|
||||||
}
|
|
||||||
|
|
||||||
func (u *Msg) Prereq() []RR {
|
|
||||||
return u.Answer
|
|
||||||
}
|
|
||||||
|
|
||||||
func (u *Msg) Update() []RR {
|
|
||||||
return u.Ns
|
|
||||||
}
|
|
||||||
|
|
||||||
func (u *Msg) Additional() []RR {
|
|
||||||
return u.Extra
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewUpdate creates a new DNS update packet, which is a normal DNS message.
|
// NewUpdate creates a new DNS update packet, which is a normal DNS message.
|
||||||
func NewUpdate(zone string, class uint16) *Msg {
|
func NewUpdate(zone string, class uint16) *Msg {
|
||||||
u := new(Msg)
|
u := new(Msg)
|
||||||
|
|
Loading…
Reference in New Issue