mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Richard Tweed <rtweed@thoughtmachine.net>
Cc: musl@lists.openwall.com
Subject: Re: Feature Request: Support use-vc option in resolv.conf
Date: Fri, 12 Apr 2019 07:53:07 -0400	[thread overview]
Message-ID: <20190412115307.GA23599@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAG_gbDCbpDF1+n1UBfN8o-CseAWPdW7sUCUm3d4MzZsaP6d3TA@mail.gmail.com>

On Fri, Apr 12, 2019 at 12:38:36PM +0100, Richard Tweed wrote:
> Hi all,
> 
> I've run into a situation where I need DNS resolution to always be over TCP
> rather than UDP due to AWS dropping DNS packets frequently enough to be a
> problem. On glibc based environments I can use the use-vc option in the
> resolv.conf file.
> http://man7.org/linux/man-pages/man5/resolv.conf.5.html
> On MUSL this doesn't seem to be supported and I would love for this to be
> added.
> 
> Feel free to CC me on this discussion

DNS over TCP is intentionally not supported in musl because of how bad
the performance is, among other reasons. For cases like yours where
it's needed, you would get much better results by running a caching
dns proxy (using TCP for outbound requests) on localhost and pointing
resolv.conf at that.

(You may also be able to get good results by configuring the retry
interval very low to make up for their servers dropping requests, but
that might not be polite.)

Rich


      reply	other threads:[~2019-04-12 11:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-12 11:38 Richard Tweed
2019-04-12 11:53 ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190412115307.GA23599@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=rtweed@thoughtmachine.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).