DNS Issues
Tofloor
poster avatar
Grahamuk2014
deepin
2014-10-10 05:22
Author
Hi,

I have just installed Deepin on my laptop and while it works fine at home I have an issue with one of the entries in the resolv.conf file when at work.

nameserver 10.0.0.1
search corp.linuxdeepin.com

As the corporate network I am on uses the same subnet range as the entry above I have to keep commenting it out to get DNS to resolve. When the files is updated it is put back in. How can I permanently remove this entry?

Thanks,

Graham
Reply Favorite View the author
All Replies
Maggieszd
deepin
2014-10-11 01:03
#1
Edit hosts file to change DNS, please execute the following command:
  1. sudo gedit  /etc/hosts
Copy the Code
Reply View the author
Grahamuk2014
deepin
2014-10-11 02:34
#2
Hi,

That won't solve my problem as I need to remove the entry listed above permenantly.

Thanks,

Graham
Reply View the author
fasheng
deepin
2014-10-12 05:40
#3
you need empty the content of "/etc/resolvconf/resolv.conf.d/original", try following commands please:

sudo cp /etc/resolvconf/resolv.conf.d/original /etc/resolvconf/resolv.conf.d/original.bak
echo '' | sudo tee /etc/resolvconf/resolv.conf.d/original
sudo resolvconf -u

then the content of "/etc/resolv.conf" will be updated.
Reply View the author
Grahamuk2014
deepin
2014-10-18 00:40
#4
Thanks, this resolved the issue.
Reply View the author