This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open Different systems have slightly different syntax for resolv.conf - this is for S CO Unix 3.2v4 and 5 and may not work elsewhere. There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.
/etc/resolv.conf needs to be readable by everyone. Do "chmod 644 /etc/resolv.conf" if it is not.
A sample resolv.conf:
domain whatever.com nameserver 126.96.36.199 nameserver 188.8.131.52 hostresorder local bind
DON'T USE THESE NAMESERVERS! Use nameservers close to your network- usually your ISP's nameservers.
You replace "whatever.com" with your local domain name. If you have no idea what that means, look in /etc/hosts- you probably set SOMETHING when you installed the machine. This part isn't really important unless you have an internal network of machines- what it does is tell the resolver which domain names YOU are responsible for. Just don't set it to a real domain like "sco.com"- that would mess you up.
Replace the xyz.xyz.xyz.xyz in the "nameserver" lines with the addresses your ISP gave you. Note that these HAVE to be numeric addresses, not host.domain names. You can have multiple nameserver lines.
That's it- you don't have to reboot- it will work instantly.
Got something to add? Send me email.