/etc/resolv.conf problem
hi
i have error from selinux i put the nameserver of 208.67.222.222 [opendns] now i have some problem with, i don't remember that default setting in /etc/resolv.conf some 1 can tell me what they are? |
It should typically just be two lines:
search mydomainname.com nameserver IP_of_DNS_Server If you are using DHCP, and have all of the associated fields pre-defined in the DHCP configuration, Network Manager will automatically create and update this file, simply restart your network services and it will be reverted back to the settings contained in the DHCP SEerver configuration. |
1sec..
i have problem with selinux : SELinux is preventing /usr/sbin/NetworkManager from unlink access on the file . i really want to keep dns of opendns what i can do about this >? this is my /etc/resolv.conf : # Generated by NetworkManager nameserver 208.67.222.222 + 208.67.220.220 i try before this : # Generated by NetworkManager nameserver 208.67.222.222 nameserver 208.67.220.220 but it still give me error in Selinux |
I will assume you are using DHCP. If so, you can edit /etc/dhclient.conf and insert the line:
Code:
|
Try a "restorecon /etc/resolv.conf"
The security label is likely incorrect. The above command will restore the security context for the file. |
netnix99 thank you it seems to work
jpollard thank you too. |
All times are GMT -5. The time now is 10:06 AM. |