Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 15 Mar 2017 12:58:02 +0000
From: <>
To: <>
Subject: RE: Queries with less than `ndots` dots never lead to
 resolution using the global namespace if the `search` domains don't work

HI Rich,

Thanks for the prompt response here. Apologies for any confusion I may have created, but I think the server is responding with an overall `NXDOMAIN` response. This is what I get from running `dig`:

; <<>> DiG 9.10.3-P4-Ubuntu <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 20863
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

; IN A

cluster.local.          60      IN      SOA     ns.dns.cluster.local. hostmaster
.cluster.local. 1489579200 28800 7200 604800 60

;; Query time: 0 msec
;; WHEN: Wed Mar 15 12:49:14 UTC 2017
;; MSG SIZE  rcvd: 147

Although there's less information with nslookup, the response from running `nslookup` seems even more definitive:


** server can't find NXDOMAIN

Maybe I was just reading too much into the output from dig regarding exactly what was being returned from the server. Any further thoughts?

Thanks again, Dominic.

-----Original Message-----
From: Rich Felker [] On Behalf Of Rich Felker
Sent: 15 March 2017 13:25
Subject: Re: [musl] Queries with less than `ndots` dots never lead to resolution using the global namespace if the `search` domains don't work

On Wed, Mar 15, 2017 at 10:28:15AM +0000, wrote:
> As you can see from the comments starting here:
> 01519
> quite a number of people are finding that the `search` and `domain` support added to musl libc doesn't work in their case. In that same issue I wrote my findings up, here:
> 61614
> which I'll duplicate here so that's it's archived on the mailing list:
> [...]
> While I can confirm the second part (queries greater than `ndots` 
> never fall-back to using search), the first part (queries smaller than 
> `ndots` fall-back to using an absolute query) isn't what I observe.
> Using dig on an Ubuntu container and attempting to resolve the 
> nonsensical query `` (simulates 
> the type of initial query for a short domain that would be
> occurring) returns a `QUESTION SECTION` and an `AUTHORITY SECTION`, 
> but no `ANSWER SECTION`. This should cause musl libc to attempt to 
> resolve the absolute query (``) instead, yet it doesn't seem 
> to based on the final result of the query.

This is where your problem lies. A response with an empty answer section is an affirmative answer that the requested name exists but has no records of the requested type (A or AAAA). In this case the answer must be accepted; otherwise results are inconsistent depending on how the query is performed. See the previous discussion of the same topic here:
and commit 0fef7ffac114befc94ab5fa794a1754442dcd531.

To fix the problem, whatever local nameserver is returning affirmative no-A-record results for nonexistent domains needs to be fixed to return NxDomain.

LEGAL DISCLAIMER. The contents of this electronic communication
and any attached documents are strictly confidential and they may not
be used or disclosed by someone who is not a named recipient.
If you have received this electronic communication in error please notify
the sender by replying to this electronic communication inserting the
word "misdirected" as the subject and delete this communication from
your system.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.