Add Scrub function
This function will make the message fit for the client's buffer, or set the TC bit.
This commit is contained in:
parent
a832ab696a
commit
90f73c50cf
3 changed files with 40 additions and 5 deletions
|
@ -72,7 +72,7 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
|
|||
}
|
||||
|
||||
m = dedup(m)
|
||||
|
||||
m, _ = state.Scrub(m)
|
||||
state.W.WriteMsg(m)
|
||||
return 0, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue