[PATCH[ dig +do option

Paul Wouters paul at cypherpunks.ca
Wed May 9 03:03:54 UTC 2012


I've gotten really annoyed at dig not taking the +do option.

Please consider applying this patch, many simple souls like me will
appreciate it a lot :)

Paul
-------------- next part --------------
diff -Naur bind-9.8.2-ori/bin/dig/dig.c bind-9.8.2/bin/dig/dig.c
--- bind-9.8.2-ori/bin/dig/dig.c	2012-05-08 22:34:19.059392999 -0400
+++ bind-9.8.2/bin/dig/dig.c	2012-05-08 22:53:56.165071926 -0400
@@ -215,6 +215,7 @@
 "                 +[no]identify       (ID responders in short answers)\n"
 "                 +[no]trace          (Trace delegation down from root)\n"
 "                 +[no]dnssec         (Request DNSSEC records)\n"
+"                 +[no]do             (Request DNSSEC records)\n"
 "                 +[no]nsid           (Request Name Server ID)\n"
 #ifdef DIG_SIGCHASE
 "                 +[no]sigchase       (Chase DNSSEC signatures)\n"
@@ -837,6 +838,13 @@
 			lookup->dnssec = state;
 			break;
 		case 'o': /* domain */
+			if(strlen(cmd) == 2) {
+			   if (state && lookup->edns == -1)
+				lookup->edns = 0;
+			   lookup->dnssec = state;
+			   break;
+			}
+			
 			FULLCHECK("domain");
 			if (value == NULL)
 				goto need_value;


More information about the bind-users mailing list