Re: network manager has gone crazy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 10 November 2012 16:05:49 lee wrote:
> Hi,
> 
> apparently network manager continues to overwrite /etc/resolv.conf
>  with incorrect data.  Adjusting it with system-config-network
>  doesn't help.
> 
> I have:
> 
> 
> ,----
> 
> | UUID="4881d1f8-79a5-46f3-a490-2464eebd89aa"
> | NM_CONTROLLED=yes
> | ONBOOT=yes
> | TYPE=Ethernet
> | IPV6INIT=no
> | NAME="System em1"
> | HWADDR=00:24:21:f3:94:ed
> | BOOTPROTO=none
> | DEFROUTE=yes
> | IPV4_FAILURE_FATAL=no
> | USERS=root
> | USERCTL=no
> | IPADDR=192.168.178.20
> | NETMASK=255.255.255.0
> | GATEWAY=192.168.178.1
> | DNS1=127.0.0.1
> | PREFIX=24
> 
> `----
> 
> 
> ... and the copies of that file under the different names are all
>  the same.  After some time, /etc/resolv.conf will be empty, and it
>  sometimes is missing the "search" entry.
> 
> Why is the network manager going crazy and doesn't stick with the
> information I'm giving it, and how do I fix this?  Name resolution
>  going down because /etc/resolv.conf keeps getting overwritten
>  causes very annoying interruptions.
> 
> I know I could disable network manager, but that isn't really a
> solution.  I need it solved before I go to sleep, though.
> 

A kludge to fix this is to make resolv.conf immutable. Then 
NetworkManager or nothing else can interfere with it.

Set up /etc/resolv.conf as you want it.

Then as root:
     chattr -i /etc/resolv.conf

Now nothing can change /etc/resolv.conf

If you need to edit it later then as root:
     chattr +i /etc/resolv.conf

A kludge but it works ;-)

Tony
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux