Skip to content
Snippets Groups Projects
Commit d75bc5be authored by ale's avatar ale
Browse files

Try setting common NameUsed prerequisite in dynamic DNS update

parent 2af41ccc
No related branches found
No related tags found
No related merge requests found
Pipeline #67532 passed with warnings
...@@ -66,8 +66,10 @@ func (d *dnsValidator) makeMsg(zone string, rrs []dns.RR, remove bool) *dns.Msg ...@@ -66,8 +66,10 @@ func (d *dnsValidator) makeMsg(zone string, rrs []dns.RR, remove bool) *dns.Msg
m := new(dns.Msg) m := new(dns.Msg)
m.SetUpdate(zone) m.SetUpdate(zone)
if remove { if remove {
m.NameUsed(rrs)
m.Remove(rrs) m.Remove(rrs)
} else { } else {
m.NameUsed(rrs)
m.RemoveRRset(rrs) m.RemoveRRset(rrs)
m.Insert(rrs) m.Insert(rrs)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment