Score:0

/etc/resolv.conf is missing after installation of RHEL 8

ao flag

I have installed RedHat Enterprise Linux 8.4 (minimal install) on my local server, and got some docker related issues.

Then I found that /etc/resolv.conf was missing.

After executing "systemctl reload NetworkManager", the file was made and docker worked.

I'm not sure why I have to reload NetworkManager to create resolv.conf and whether my network is working properly. Is there any common way to do this on RHEL8?

Score:1
in flag

By default, NetworkManager on Red Hat Enterprise Linux (RHEL) 8 dynamically updates the /etc/resolv.conf file with the DNS settings from active NetworkManager connection profiles.

If you don't want dynamic updates by NetworkManager set

[main]
dns=none

in /etc/NetworkManager/conf.d/90-dns-none.conf

and reload the NetworkManager with

systemctl reload NetworkManager

The procedure is documented in more detail in the RHEL 8 documentation

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.