≡ Menu

/etc/resolv.conf

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?
[click to continue…]

Linux / UNIX set the DNS from the command line

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:

[click to continue…]

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.
[click to continue…]

I have installed Red Hat enterprise Linux version 5.x server. Next, I added a brand new LAN card (NIC). I can see my second network card detected while booting the IBM server. How do I configure the network card from the command line?
[click to continue…]