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

last updated in Categories , , , , , , , ,

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

last updated in Categories , , , , , , , ,

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 )

last updated in Categories , , , , , , ,

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.