Doesnt return anything

This commit is contained in:
Miek Gieben 2012-01-15 16:20:25 +01:00
parent 8608def558
commit 3124872aec
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ func (dns *Msg) SetRcodeFormatError(request *Msg) {
// SetUpdate makes the message a dynamic update packet. It // SetUpdate makes the message a dynamic update packet. It
// sets the ZONE section to: z, TypeSOA, classINET. // sets the ZONE section to: z, TypeSOA, classINET.
func (dns *Msg) SetUpdate(z string) { func (dns *Msg) SetUpdate(z string) {
return NewUpdate(z, ClassINET) dns.MsgHdr.Id = Id()
dns.MsgHdr.Opcode = OpcodeUpdate
dns.Question = make([]Question, 1)
dns.Question[0] = Question{z, TypeSOA, ClassINET}
} }
// SetIxfr creates dns msg suitable for requesting an ixfr. // SetIxfr creates dns msg suitable for requesting an ixfr.