<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 9 juin 2020 à 18:37, gregor herrmann <<a href="mailto:gregoa@debian.org">gregoa@debian.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 09 Jun 2020 15:35:37 +0200, Jérémy Lal wrote:<br>
<br>
> Is there a simple way to setup the network locally so i can reproduce it ?<br>
> Naive attempts (like disabling IPv4 on the wan network) failed.<br>
<br>
Niko and Dom came up with this recipe:<br>
<br>
    # unshare -n<br>
    # ip li set lo up<br>
    # ip li add dummy0 type dummy<br>
    # ip li set dummy0 up<br>
<br>
If you are using pbuilder/cowbuilder you can<br>
- make sure you have USENETWORK=no in your pbuilderrc<br>
- add the following to /usr/lib/pbuilder/pbuilder-unshare-wrapper<br>
  after the lo dance:<br>
<br>
ip li add dummy0 type dummy<br>
ip li set dummy0 up<br></blockquote><div><br></div><div>Thanks, it doesn't yield the exact same conditions, though ?</div><div>Error: getaddrinfo ENOTFOUND localhost<br></div><div><br></div><div>Is there a way to keep the localhost dns resolution ?</div><div><br></div><div>Jérémy</div><div><br></div></div></div>