Skip to content

Instantly share code, notes, and snippets.

@hdais
Created March 8, 2015 11:37
Show Gist options
  • Save hdais/2c77a79dede3e8c035d6 to your computer and use it in GitHub Desktop.
Save hdais/2c77a79dede3e8c035d6 to your computer and use it in GitHub Desktop.
NSD ANY-to-NOTIMP patch
--- nsd-4.1.1/query.c 2015-01-21 17:36:06.000000000 +0900
+++ nsd-4.1.1-noany/query.c 2015-03-07 18:50:20.587502110 +0900
@@ -1384,6 +1384,9 @@
* Thus RCODE = NOERROR = NSD_RC_OK. */
return query_error(q, NSD_RC_OK);
}
+ if(q->qtype==TYPE_ANY) {
+ return query_error(q, NSD_RC_IMPL);
+ }
query_prepare_response(q);
@hdais
Copy link
Author

hdais commented Mar 8, 2015

A patch for NSD 4.1.1 to reject ANY query (as per draft-ogud-dnsop-any-notimp-00 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment