Configuring a host to use a name server
To configure a host to use a name server, use this procedure.
- Create an /etc/resolv.conf file by
running the following command:
- On the first line of the /etc/resolv.conf file,
type the word domain followed by the full name
of the domain that this host is in. For example:
- On any blank line below the
domainline, type the word nameserver, followed by at least one space, followed by the dotted decimal Internet address of the name server that this host is to use (the name server must serve the domain indicated by the
domainstatement).You can have up to 3 name server entries. For example, your /etc/resolv.conf file might contain the entries:
nameserver 220.127.116.11 nameserver 18.104.22.168
The system queries the name servers in the order listed.
Alternatively, the search keyword could be used to specify the order in which the resolver will query the domain list. In this case,
domainname_listcan have a maximum of 1024 character strings, each separated by a space.
- Assuming the name server is operational, you can test the
communication between the host and the name server by typing the following
Use the name of a host that should be resolved by the name server to see if the process is working. The output you receive should appear similar to the following:
brown.abc.aus.century.com is 22.214.171.124
Other configuration tasks are shown in the following table.
|Task||SMIT fast path||Command or file|
|Create an /etc/resolv.conf File||
||create and edit /etc/resolv.conf1|
|List All the Name Servers Used by a Host||
|Add a Name Server||
|Remove a Name Server||
|Start/Restart Using Domain Name Resolution||
|Stop Using Domain Name Resolution||
|Change/Show the Domain||
|Remove the Domain||