Open bortzmeyer opened 8 years ago
A possible patch could be as simple as (but may disconcert people used to dig being recursive by default):
diff --git a/q/q.go b/q/q.go
index 11f4051..dd2e155 100644
--- a/q/q.go
+++ b/q/q.go
@@ -45,7 +45,7 @@ func main() {
aa := flag.Bool("aa", false, "set AA flag in query")
ad := flag.Bool("ad", false, "set AD flag in query")
cd := flag.Bool("cd", false, "set CD flag in query")
- rd := flag.Bool("rd", true, "set RD flag in query")
+ rd := flag.Bool("rd", false, "set RD flag in query")
fallback := flag.Bool("fallback", false, "fallback to 4096 bytes bufsize and after that TCP")
tcp := flag.Bool("tcp", false, "TCP mode, multiple queries are asked over the same connection")
nsid := flag.Bool("nsid", false, "set edns nsid option")
"You must use the -flag=false form to turn off a boolean flag."
[ Quoting notifications@github.com in "Re: [miekg/exdns] How to disable re..." ]
A possible patch could be as simple as (but may disconcert people used to dig being recursive by default):
diff --git a/q/q.go b/q/q.go index 11f4051..dd2e155 100644 --- a/q/q.go +++ b/q/q.go @@ -45,7 +45,7 @@ func main() { aa := flag.Bool("aa", false, "set AA flag in query") ad := flag.Bool("ad", false, "set AD flag in query") cd := flag.Bool("cd", false, "set CD flag in query") - rd := flag.Bool("rd", true, "set RD flag in query") + rd := flag.Bool("rd", false, "set RD flag in query") fallback := flag.Bool("fallback", false, "fallback to 4096 bytes bufsize and after that TCP") tcp := flag.Bool("tcp", false, "TCP mode, multiple queries are asked over the same connection") nsid := flag.Bool("nsid", false, "set edns nsid option")
You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/miekg/exdns/issues/2#issuecomment-218771003 /Miek
Miek Gieben
The q program in the example has a -rd option to ask for recursion but it is enabled by default. How to disable it?
There is a RD each time;