Date: Sun, 7 Jan 2024 12:05:08 -0800 From: Yuri <yuri@FreeBSD.org> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: /etc/hosts doesn't work in jails? Message-ID: <4069a345-5799-4608-9480-f7183ef48ab2@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------rtoQKyunFcLZkRH5CRSds6sQ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit For some mysterious reason github.com can't be connected to from my network because the IP address that DNS returns is unreachable. Setting the new resolution rules in /etc/hosts works on the base host: 140.82.112.4 github.com 140.82.113.10 codeload.github.com But the same doesn't work in the poudriere jail. The same modification in the jail's /etc/hosts didn't take effect. /etc/resolve.conf files are identical. I am wondering, are /etc/host files supposed to work in jail? (I solved this problem by adding the same rules for github.com in DNSMasq on the router.) Thanks, Yuri --------------rtoQKyunFcLZkRH5CRSds6sQ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>For some mysterious reason github.com can't be connected to from my network because the IP address that DNS returns is unreachable.</p> <p><br> </p> <p>Setting the new resolution rules in /etc/hosts works on the base host:</p> <p>140.82.112.4 github.com <br> 140.82.113.10 codeload.github.com<br> <br> <span style="font-family:monospace"></span></p> <p><span style="font-family:monospace">But the same doesn't work in the poudriere jail. The same modification in the jail's /etc/hosts didn't take effect.<br> </span></p> <p><span style="font-family:monospace">/etc/resolve.conf files are identical.<br> </span></p> <p><span style="font-family:monospace"><br> </span></p> <p><span style="font-family:monospace">I am wondering, are /etc/host files supposed to work in jail?</span></p> <p><span style="font-family:monospace"><br> </span></p> <p><span style="font-family:monospace">(I solved this problem by adding the same rules for github.com in DNSMasq on the router.)<br> </span></p> <p><span style="font-family:monospace"><br> </span></p> <p><span style="font-family:monospace"><br> </span></p> <p><span style="font-family:monospace">Thanks,</span></p> <p><span style="font-family:monospace">Yuri<br> </span></p> </body> </html> --------------rtoQKyunFcLZkRH5CRSds6sQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4069a345-5799-4608-9480-f7183ef48ab2>