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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.