resolvconf does not include IPv4 configuration
Here we have functional IPv6 configured along with IPv4.
When jail starts, it's /etc/resolv.conf file has only IPv6 nameserver information, no IPv4 nameservers.
IPv6 is autoconfigured for a jail.
It does not matter if jail is configured with static IPv4 address or DHCP IPv4, /etc/resolv.conf has only IPv6 nameserver information.
This issue looks somewhat similar to 3758, https://bugs.freenas.org/issues/3758jail resolv.conf file
- Generated by resolvconf
FreeNAS host resolv.conf file
I would expect that host resolv.conf file is honored copied to jail as it is stated several times over in FreeNAS forums.
As a workaround I have to edit resolv.conf manually every time a jail is restarted.
Am I correct and can this be fixed, please?
#3 Updated by John Hixson almost 5 years ago
- Status changed from Screened to 15
Can you post the /etc/resolv.conf for the "test1" jail? /etc/resolv.conf is only copied into the jail when the jail is created. I'm not able to reproduce this here. I have a jail here configured with dhcp for ipv4 and ipv6 autoconfiguration and /etc/resolv.conf has the correct configuration. I've looked at your debug and do see some problems.
#7 Updated by John Hixson almost 5 years ago
shpokas - wrote:
John Hixson wrote:
shpokas, can I take a look at your system? (we use teamviewer for this).
Yes, you can. Would you like to do it now?
Yu can catch me on Skype, search for username kurbijkurne
I am available now. I don't use skype, however. If you would like to do this with teamviewer, please email me your details directly: email@example.com
#11 Updated by John Hixson over 4 years ago
- Status changed from 15 to Investigation
So the gist of this is that a static IPv4 address is being used while a dynamic IPv6 address is also being used. rtsold is overwriting /etc/resolv.conf with only a IPv6 address. To get around this, we added an entry for the IPv4 DNS address into /etc/resolv.conf and then chflags to schg so that rtsol can't overwrite it. I am going to investigate a more elegant way of doing this (if possible).