Le mar. 9 juin 2020 à 18:37, gregor herrmann <gre...@debian.org> a écrit :

> On Tue, 09 Jun 2020 15:35:37 +0200, Jérémy Lal wrote:
>
> > Is there a simple way to setup the network locally so i can reproduce it
> ?
> > Naive attempts (like disabling IPv4 on the wan network) failed.
>
> Niko and Dom came up with this recipe:
>
>     # unshare -n
>     # ip li set lo up
>     # ip li add dummy0 type dummy
>     # ip li set dummy0 up
>
> If you are using pbuilder/cowbuilder you can
> - make sure you have USENETWORK=no in your pbuilderrc
> - add the following to /usr/lib/pbuilder/pbuilder-unshare-wrapper
>   after the lo dance:
>
> ip li add dummy0 type dummy
> ip li set dummy0 up
>

Thanks, it doesn't yield the exact same conditions, though ?
Error: getaddrinfo ENOTFOUND localhost

Is there a way to keep the localhost dns resolution ?

Jérémy

Reply via email to