resolv.conf not working properly with Ethernet in Ubuntu

2

2

I have a Lenovo X200 laptop on which I am running Ubuntu 9.10. Recently, (I assume after some updating, but I really don't know) my ethernet port stopped working under Linux. A more tech/linux-savvy friend of mine was able to temporarily fix the problem by manually editing the resolv.conf file with the DNS servers he found through his connection. However, after rebooting, the problem came back and now I am looking for a more permanent solution.

user29699

Posted 2010-03-15T14:37:09.227

Reputation:

this solution fixed my problem: https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu/907249#907249

– baptx – 2018-11-10T16:56:22.963

Answers

1

you need to edit:

/etc/dhcp3/dhclient.conf

and prepend the dns severs to this. I think there is a commented out line for what you need.

resolv.conf is generated each time you boot.

matpol

Posted 2010-03-15T14:37:09.227

Reputation: 387

Incomplete response -- please show what lines to add or edit in dhclient.conf file. – woohoo – 2018-07-01T18:49:55.663

I added prepend domain-name-servers 8.8.8.8, 8.8.4.4; right where the commented out line that you speak of is--with absolutely no effect. Though my computer only had /etc/dhcp/dhclient.conf, not dhcp3. – Jay Sullivan – 2014-06-12T01:28:25.923

restart networking? – matpol – 2014-06-12T07:28:40.347

1

actually resolv.conf is updated via ubuntu network manager upon getting a new lease from dhcp. your dhcp server ideally should give you a set of two nameservers to use in the local network. if you're behind a private broadband router it's likely that you accidentally disabled this dns feature there.

if you use the abovementioned dhclient.conf it is quite possible that your nameserver setting won't work as soon as you put your laptop in another network as not all recursive nameservers respond to all internet network ranges.

ZaphodB

Posted 2010-03-15T14:37:09.227

Reputation: 151