On 14/05/12 09:04, Kahlil Hodgson wrote:
Have a look in
/etc/NetworkManager/dispatcher.d/11-dhclient
you might be able to figure out a tweak to put 127.0.0.1 back in.
Yes, the script enumerates and runs the dhcp-plugin scripts in /etc/dhcp/dhclient.d/. I tried to create such a script there, but NetworkManager still does not run it.
So (a quick an dirty hack of) putting
echo 'nameserver 127.0.0.1'>> /etc/resolv.conf
at the end of that script doesn't help? Or does it need to go first?
Kal
Actually I'm being brain-dead here. What I think you want is to edit the /etc/dhcp/dhclient.conf file and put something like
prepend domain-name-servers 127.0.0.1
in the appropriate place. See man page for dhclient.conf for more details.
Hope this helps.
Kal