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:
Miek Gieben 2016-03-26 09:26:54 +00:00
parent a832ab696a
commit 90f73c50cf
3 changed files with 40 additions and 5 deletions

View file

@ -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
}