/etc/hosts doesn't work in jails?

From: Yuri <yuri_at_FreeBSD.org>
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