mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Clarification on the NOERROR resolving choices
@ 2023-06-27 14:12 Rob de Wit
  2023-06-27 14:36 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Rob de Wit @ 2023-06-27 14:12 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]


I ran into some issues lately and found this in the mailing list archive

The problem I had was with Alpine containers that suddenly failed resolving
any hostname. I ended up tracing it back to a change I made in a domain
that was in the "search" fiels in /etc/resolv.conf. The change was a
wildcard TXT field. So when the resolver was resolving
<host>.<tld>.<searchdomain>.<tld> it received an NOERROR reply. This
indicates there is a record but just not a "A" or "AAAA" one. Perfectly
valid as far as I know, but the resolver then quits the search.

Maybe someone here can clarify this behaviour, because from the referred
thread in the mailing list I get that this is caused by malfunctioning DNS,
but in my case I don't think it is.

Right now our options are:

   - adjusting ndots in resolv.conf - but we actually use the search path
   - adding a dot at the end - this can only work if we know up front we
   don't want the search path
   - replacing Alpine with some libc-based image - this involves many
   - not to do it again (adding wildcard for something other than A or AAAA

Met vriendelijke groet / Kind regards

*Rob de Wit*

[-- Attachment #2: Type: text/html, Size: 2067 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-27 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-27 14:12 [musl] Clarification on the NOERROR resolving choices Rob de Wit
2023-06-27 14:36 ` Rich Felker
2023-06-27 15:05   ` Rob de Wit
2023-06-27 15:22     ` Rich Felker

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).