/etc/hosts doesn't work in jails?
- Reply: Zhenlei Huang : "Re: /etc/hosts doesn't work in jails?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Jan 2024 20:05:08 UTC
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