Jakub Wilk writes ("Re: Alternative solution (was: Re: Network access during build)"): > * Jakub Wilk <jw...@debian.org>, 2016-09-07, 23:49: > >you can completely disable external network with socket_wrapper > > ... which is a pretty heavy-weight solution, and in fact it breaks > asyncssh's tests.
Then that is clearly a bug in asyncssh's tests. Package builds and tests should work in such a situation. > 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’ That's interesting - thanks for a useful contribution. Doing that in the asyncssh package (either in debian/ or in upstream) would mean that the above bug would go away. Ian. -- Ian Jackson <ijack...@chiark.greenend.org.uk> These opinions are my own. If I emailed you from an address @fyvzl.net or @evade.org.uk, that is a private address which bypasses my fierce spamfilter.