diff options
author | 2016-10-02 17:23:25 +0100 | |
---|---|---|
committer | 2016-10-02 17:23:25 +0100 | |
commit | 560f11d1484c7fe0a729832ba3f6c3ef4f6f58e0 (patch) | |
tree | 784bdb95d8ee986783ae0b4e24488b91431ae02d /middleware/secondary/setup.go | |
parent | 4096c4906d5835292b9968d5261b91a1db9d89b6 (diff) | |
download | coredns-560f11d1484c7fe0a729832ba3f6c3ef4f6f58e0.tar.gz coredns-560f11d1484c7fe0a729832ba3f6c3ef4f6f58e0.tar.zst coredns-560f11d1484c7fe0a729832ba3f6c3ef4f6f58e0.zip |
EDNS0 unknown flags handling (#313)
Fix the unknown flags handling when receiving such message. We should
zero out all of the Z bits in the OPT record before returning.
Current behavior:
dig +norec +noad +ednsflags=0x80 soa miek.nl @deb.atoom.net
...
; EDNS: version: 0, flags:; MBZ: 0080 , udp: 4096
New:
dig +norec +noad +ednsflags=0x80 soa miek.nl @localhost -p 2053
...
; EDNS: version: 0, flags:; udp: 4096
Take care no to overwrite the Do bit.
We still accept *all* EDNS option; I do not consider that a bug in
itself.
Fixes #306
Diffstat (limited to 'middleware/secondary/setup.go')
0 files changed, 0 insertions, 0 deletions