* Nikolaus Rath <nikol...@rath.org>, 2016-09-30, 14:07:
Luckily, glibc has a way to disable DNS queries without LD_PRELOAD trickery:

$ RES_OPTIONS=attempts:0 wget http://www.example.com/

Wow, I wonder many people have used this innocent environment variable name and been bitten by weird network failures..

The name is not great, but it's been like that at least since 1995. It's not going to be changed.

Couldn't they at least call it LIBC_RES_OPTIONS?

codesearch.d.n tells me this variable in not (g)libc-specific. There are other resolvers that honour it, too.
--
Jakub Wilk

Reply via email to