Why /etc/resolv.conf is empty at first place . As bootproto is set to DHCP , shouldn't the nameserver be populated automatically ?
My understanding is that resolv.conf shoudn't be modidfied directly as it is overwritten by NetworkManager (i think if DHCP is being used ?)
Whats the best approach for setting nameserver.
1) If I set DNS servers using nmcli or nmtui and keep connection mode manual then after restarting network.service , /etc/resolv.conf must show the DNS servers I configured
2) if DHCP is set then /etc/resolv.conf must have nameservers assigned by DHCP automatically I guess ?
Any idea why above two points dont work in this lab until nameserver is manually set in resolv.conf ?Also is it right approach to do this ?