mailing list of musl libc
 help / color / mirror / code / Atom feed
* resolv.conf ordering
@ 2015-09-15  3:25 Jameel Al-Aziz
  2015-09-15  4:43 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: Jameel Al-Aziz @ 2015-09-15  3:25 UTC (permalink / raw)
  To: musl

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

I'm sure this has been brought up before, but just thought I'd reach out
see if there's a solution.

I use musl on Alpine via Docker. I encountered issues today where DNS
wasn't resolving the way we expect in our images. I finally managed to
trace it down to musl's resolver (
http://wiki.musl-libc.org/wiki/Functional_differences_from_glibc#Name_Resolver_.2F_DNS
).

We configure resolv.conf with three DNS servers: Consul DNS, AWS VPC DNS,
Google DNS. It turns out that the AWS VPC DNS is the fastest to respond and
therefore causes results to fail even though they can be served via Consul
DNS. Putting aside that the musl resolver logic breaks convention (which
many people rely on), it seems that in this case it is more unpredictable
than simply following the order.

The host DNS is Consul, and while we could just setup Consul with
recursors, we run the risk of failing to resolve anything if Consul fails.
Setting up a local caching DNS is also overkill (we're in Docker
containers).

Is there no way to force musl to follow the order of nameservers in
resolv.conf? Or even if not, to allow musl to accept the first successful
response instead of failing on the first response? It seems to me that we
have to give up reliability for predictability, which is not what this
feature was intended to do from my understanding.

Any help on this matter would be greatly appreciated!

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

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

end of thread, other threads:[~2015-09-15 17:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-15  3:25 resolv.conf ordering Jameel Al-Aziz
2015-09-15  4:43 ` Rich Felker
2015-09-15 12:56   ` Jameel Al-Aziz
2015-09-15 16:23     ` Andy Shinn
2015-09-15 17:22       ` Szabolcs Nagy
2015-09-15 17:55     ` Rich Felker

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

	https://git.vuxu.org/mirror/musl/

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).