<div dir="ltr"><div>The help text for delv says you can specify a source using -b, the same as you can with dig:</div><div><br></div><div>Usage:  delv [@server] {q-opt} {d-opt} [domain] [q-type] [q-class]<br>Where:  domain        is in the Domain Name System<br>        q-class  is one of (in,hs,ch,...) [default: in]<br>        q-type   is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]<br>        q-opt    is one of:<br>                 -4                  (use IPv4 query transport only)<br>                 -6                  (use IPv6 query transport only)<br>                 -a anchor-file      (specify root trust anchor)<br>                 -b address[#port]   (bind to source address/port)<br></div><div>etc...</div><div><br></div><div>The rest I don't know, yet.</div><div>Hope that helps, Greg</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 4 Jun 2025 at 07:46, Nick Tait via bind-users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Stace.<br>
<br>
The transport protocol used to ask the question is (or should be) <br>
independent of the question being asked. So in this case asking for a <br>
PTR record for an IPv6 address wouldn't change whether IPv4 or IPv6 is <br>
used to make the recursive queries.<br>
<br>
I've done a bit more testing on this, and it seems like if you use the <br>
+ns option, delv ignores the -4, -6 and -b options. I'm not sure if that <br>
is by design or not, but it would be useful to be able to control which <br>
source IP address delv uses for queries and whether delv queries for A <br>
or AAAA records? (It would also be good if it queried for both by <br>
default -- i.e. if neither -4 or -6 were specified?)<br>
<br>
Can anyone advise whether this something I should raise a bug report for?<br>
<br>
Nick.<br>
<br>
P.S. Using +ns also causes delv to ignore a server specified with the @ <br>
option, and in this case it logs a message like: ";; WARNING: using <br>
internal name server mode: '@<a href="http://8.8.8.8" rel="noreferrer" target="_blank">8.8.8.8</a>' will be ignored"<br>
<br>
On 03/06/2025 22:36, Stacey Marshall wrote:<br>
> On 3 Jun 2025, at 10:29, Nick Tait via bind-users wrote:<br>
><br>
>> But I also noticed that delv only makes A queries (not AAAA), and even if I specify "-6" on the command-line it makes no difference?<br>
> Have yo tried using an IPv6 address with the -x option?<br>
><br>
><br>
> delv -x ::ffff:45.90.5.195 +ns +qmin +maxqueries=100<br>
><br>
><br>
> --<br>
> Stace<br>
-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>