DHCP Client Error: mv cannot move /etc/resolv.conf.dhclient-new to /etc/resolv.conf: Operation not permitted

Posted on in Categories , , , , , , , , last updated January 11, 2008

Q. I’m getting following error on my Debian Linux system:

mv cannot move /etc/resolv.conf.dhclient-new to /etc/resolv.conf: Operation not permitted

How do I fix this problem?
Continue reading “DHCP Client Error: mv cannot move /etc/resolv.conf.dhclient-new to /etc/resolv.conf: Operation not permitted”

Linux / UNIX set the DNS from the command line

Posted on in Categories , , , , , , , , last updated December 20, 2007

Q. I just got Linux installed on my system. I’m able to connect to internet via IP address only. I’m not able to find out information about setting up new DNS sever ip under Linux. How do I configure primary and secondary DNS via terminal / shell prompt?

A. Under Linux / UNIX / BSD operating system, you need to edit the /etc/resolv.conf file and add the line:

Continue reading “Linux / UNIX set the DNS from the command line”

Configure Linux / UNIX Dns Resolver To Append Domain Search Names And Path ( ndots options )

Posted on in Categories , , , , , , , last updated April 22, 2014

I‘m using CentOS Linux server version 5.x/6.x+. How do I configure a system so that the DNS resolver will append search path extensions to hostnames that have dots in them? For example, my domain name is test.com. when I query for mail hostname it should append .test.com and return the IP address of mail.test.com hostname.