SRV query with no domain?

Christopher Cain chris at
Thu Aug 16 14:42:16 UTC 2012

Of course a dig query will fail without the domain appended.  Dig takes
you query at face value and will not append domains from your search
suffix list like nslookup and ping will.  You ALWAYS have to fully qualify
your requests when using dig.


On 12-08-15 3:29 PM, "WBrown at" <WBrown at> wrote:

>kevin wrote on 08/15/2012 12:52:18 PM:
>> I don't believe SRV lookups use the "search" directive in /etc/
>> resolv.conf; I think that's only for A (name-to-address) lookups.
>> But I could be wrong on that...
>Using host I was able to do a search for _sip._tcp for the search domain
>on my system (domain changed to
>wbrown at wbrown-D630:~$ host -t srv _sip._tcp
> has SRV record 0 0 5060
>wbrown at wbrown-D630:~$ host -t srv
> has SRV record 0 0 5060
>Dig fails on same query without domain, succeeds if it is included:
>wbrown at wbrown-D630:~$ dig +short  _sip._tcp srv
>wbrown at wbrown-D630:~$ dig +short srv
>0 0 5060
>Confidentiality Notice:
>This electronic message and any attachments may contain confidential or
>privileged information, and is intended only for the individual or entity
>identified above as the addressee. If you are not the addressee (or the
>employee or agent responsible to deliver it to the addressee), or if this
>message has been addressed to you in error, you are hereby notified that
>you may not copy, forward, disclose or use any part of this message or
>attachments. Please notify the sender immediately by return e-mail or
>telephone and delete this message from your system.

More information about the bind-users mailing list