Oct 15, 2009

resolv.conf empty, resolv.conf.netconfig ate the data

Problem: After a reboot, /etc/resolv.conf says just # Generated by NetworkManager and the real data went to /etc/resolv.conf.netconfig. I have both eth0 and wlan0 activated by NM. My setup does not involve dial-up like Seife's.

Work-around:
rcnetwork stop
rm /etc/resolv.conf.netconfig
: > /etc/resolv.conf
rcnetwork start
I wonder if this is a bug. Anyway, hopefully this will help someone. openSUSE 11.2 RC1.

4 comments:

Anonymous said...

Hit this one as well and re-opened http://bugzilla.novell.com/show_bug.cgi?id=544195 as a result.

cyberorg said...

I usually do:
insserv named
rcnamed start

And let resolv.conf do whatever it feels like.

wariat said...

Can you please tell me why cnetworkmanager cannot work with nm-applet?

I want to put simple reconnect script into cron, but:

$ cnetworkmanager -C Wariatkowo
Another applet is running: Bus name already exists: org.freedesktop.NetworkManagerUserSettings (pid 5846)

$ ps -p 5846
PID TTY TIME CMD
5846 ? 00:00:05 nm-applet

is it a little bug, or maybe cnetworkmanager is not prepared to live with nm-applet in one system?

Martin Vidner said...

Grr, Wariat please choose a cnetworkmanager related topic for that.
Anyway, yes, the -C option makes it acts as an applet, but you can use --activate-connection to use connection provided by another applet or the NM daemon.