CONFIGURING THE DNS CLIENT

Configuring Solaris as a DNS client is a two-step process. First you have to configure the machine to use DNS as a hostname resolution service. DNS can be configured as a primary hostname resolution service or as a fallback to another service, such as /etc/inet/hosts. This is done with the help of the /etc/nsswitch.conf file. The next step is to configure IP addresses for available DNS servers. This is done through the /etc/resolv.conf file. The client resolves the hostname using two basic library routines: gethostbyname() and gethostbyaddr(). Cumulatively, these are called the resolver library and they are responsible for mapping hostnames to IP addresses and vice versa. The following sections take a closer look at ...

Get Solaris™ 8 Network Administrator Certification Training Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.