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

Send SOA with negative responses (RFC2308) #995

Merged
merged 1 commit into from
Jul 13, 2015

Conversation

42wim
Copy link
Contributor

@42wim 42wim commented Jun 2, 2015

According to RFC:

"Name servers authoritative for a zone MUST include the SOA record of the zone in the authority section of the response when reporting an NXDOMAIN or indicating that no data of the requested type exists."

This fixes issues with DNS recursors caching negative responses too long (e.g. PowerDNS recursor)

@ryanuber
Copy link
Member

ryanuber commented Jun 3, 2015

Makes sense, could you add a test for this as well? There is already a fairly complete test for this exact method, it could be extended to verify SOA presence as well.

@42wim 42wim force-pushed the rfc2308-soa-ttl branch 2 times, most recently from 08c367d to 76792ff Compare June 3, 2015 11:21
@42wim
Copy link
Contributor Author

42wim commented Jun 3, 2015

I extended TestDNS_NodeLookup and TestDNS_ServiceLookup.
Created a new TestDNS_NonExistingLookup to also test queries not in .service or .node

@42wim
Copy link
Contributor Author

42wim commented Jun 13, 2015

Anything else needed for possible merge ?

@ryanuber
Copy link
Member

Hey @42wim, sorry for the delay. Could you rebase this against master? I made some changes to the makeDNSServer method, should be a pretty minor code change.

@42wim
Copy link
Contributor Author

42wim commented Jun 13, 2015

Sure, here you go.

@jovandeginste
Copy link
Contributor

When can this fix be merged? Our DNS needs this too :-)

@highlyunavailable
Copy link
Contributor

+1 because of Windows needing this too.

@ryanuber
Copy link
Member

LGTM, thanks for doing this!

ryanuber added a commit that referenced this pull request Jul 13, 2015
Send SOA with negative responses (RFC2308)
@ryanuber ryanuber merged commit 5682b71 into hashicorp:master Jul 13, 2015
duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
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

Successfully merging this pull request may close these issues.

4 participants