[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alternative solution



 ❦ 29 septembre 2016 22:54 CEST, Jakub Wilk <jwilk@debian.org> :

>>you can completely disable external network with socket_wrapper
>
> ... which is a pretty heavy-weight solution, and in fact it breaks
> asyncssh's tests.
>
> Luckily, glibc has a way to disable DNS queries without LD_PRELOAD trickery:
>
> $ RES_OPTIONS=attempts:0 wget http://www.example.com/
> --2016-09-29 22:49:22--  http://www.example.com/
> Resolving www.example.com (www.example.com)... failed: Temporary failure in name resolution.
> wget: unable to resolve host address ‘www.example.com’

Thanks!

I applied your fix. It's unobtrusive enough.
-- 
If more of us valued food and cheer and song above hoarded gold, it would
be a merrier world.
		-- J.R.R. Tolkien

Attachment: signature.asc
Description: PGP signature


Reply to: