FC3 - Stop '/etc/resolv.conf' from being changed, how?

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Wed Dec 1 16:04:39 UTC 2004


Madison Kelly wrote:
> Hi all,
> 
>   I have now tried everything I can think of to prevent my 
> '/etc/resolv.conf' file from being re-written when I switch networks and 
> nothing seems to work. I have my own DNS server and I have no desire to 
> use other people's DNS servers. I use a laptop so I am frequently 
> connecting to DHCP-servered LANs.
> 
>   I have tried specifying DNS in the graphical network config, manually 
> setting up my devices in '/etc/sysconfig/network-scripts' and even 
> changing the permissions on the file to '444' but they where changed 
> back to '644' and re-written non the less. Can anyone tell me how to 
> stop this behavior?
> 
>   This is exactly the behavior I -left- MS for (forcing decisions on 
> me). Grr!

If you're using dhcpcd, the -R option prevents resolv.conf from being 
overwritten.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list