Simply edit (or create)
/etc/resolv.conf (should be there). For example, here's what it looks like for Google's open DNS servers:
Code:
search com
# Google Free DNS Servers
nameserver 8.8.8.8
nameserver 8.8.4.4
You only need two, more is just overkill.
I would note that router DNS
may cease working after some period of time; this happens with some Linksys routers and I've seen it on others. After a while, it just quits and needs to be restarted.
The configuration I use for fixed-IP on all my systems looks like this:
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.10"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Default gateway IP address:
GATEWAY="192.168.1.1"
Keep in mind that DHCP usually starts leasing at 192.168.1.100, so keep your fixed-IP below that.
Hope this helps some.
Oops! Forgot to mention
/etc/hosts.
This is my
/etc/hosts file for four servers and one network printer:
Code:
# For loopbacking.
127.0.0.1 localhost
# Local servers
192.168.1.10 fubar.lan fubar
192.168.1.15 OfficeJet
192.168.1.20 snafu.lan snafu
192.168.1.30 pita.lan pita
192.168.1.2 hicl01.lan hicl01
The names are the hostname you assigned to the box during installation.
fubar.lan is the actual name of the host,
fubar is how you refer to it without the
.lan.
So, you
ping snafu from
fubar (or, for that matter
ping fubar from
fubar) and get a response. You also
ssh fubar from any other server without having to enter the numeric address.
Every box has the same
/etc/hosts file, every box can access the network printer (HPLIP runs on every system; HPLIP set up also sets up CUPS).
Makes life easier.