Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq <=2.79 omits EDNS0 OPT records on some responses #62

Closed
srd424 opened this issue Aug 5, 2018 · 1 comment
Closed

dnsmasq <=2.79 omits EDNS0 OPT records on some responses #62

srd424 opened this issue Aug 5, 2018 · 1 comment

Comments

@srd424
Copy link

srd424 commented Aug 5, 2018

Description

dnsmasq 2.79 and below omits EDNS0 OPT records when returning an empty answer for a domain it is authoritative for, even if they were present on the query. The violates RFC 6891.

systemd-resolved 237 seems to get confused by this in certain circumstances; when using the stub resolver and requesting an address for which there are no AAAA records, there can sometimes be a five second hang in resolution. systemd 239 doesn't exhibit this behaviour:

systemd/systemd#9785

Evidence

Simple-ish test case:

IFACE=dummy0
SUBNET=10.0.0

ip link add $IFACE type dummy
ifconfig $IFACE ${SUBNET}.1/24
dnsmasq -h -R -d -C /dev/null -2 $IFACE -z -i $IFACE -I lo --host-record=test.test,${SUBNET}.1 &

dig -t a test.test @10.0.0.1 | grep EDNS
# should return "; EDNS ..."
dig -t aaaa test.test @10.0.0.1 | grep EDNS
# again, should return "; EDNS ..." but doesn't

Proposed Fix / Vendor Response

This is fixed by upstream commit http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=1682d15a744880b0398af75eadf68fe66128af78

Metadata

Submitter: Steve Dodd
Submit-Date: 2018-08-05
Report-Date: 2018-08-03 Simon Kelley simon@thekelleys.org.uk
Fixed-Date: 2018-08-03
Tags: edns0,edns
:

@pspacek
Copy link
Contributor

pspacek commented Aug 9, 2018

Please transform this into pull request, I will be happy to merge this.

@pspacek pspacek closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants