7.3.2.2. Configuring Host Name Resolution
Update the
/etc/resolv.conf file on the broker host (Host 1) so that it uses the local named service. This allows the broker to resolve its own host name, existing node host names, and any future nodes that are added. Also configure the firewall and named service to serve local and remote DNS requests for the domain.
Procedure 7.7. To Configure Host Name Resolution:
- Edit the
/etc/resolv.conffile on the broker host. - Add the following entry as the first name server:
nameserver 127.0.0.1 - Save and close the file.
- Open a shell and run the following commands. This allows DNS access through the firewall, and ensures the
namedservice starts on boot.# lokkit --service=dns # chkconfig named on - Use the
servicecommand to start thenamedservice (that is, BIND) for some immediate updates:# service named start - Use the
nsupdatecommand to open an interactive session to BIND and pass relevant information about the broker. In the following example,server,update,andsendare commands to thensupdatecommand.Important
Remember to replacebroker.example.comwith the fully-qualified domain name,10.0.0.1with the IP address of your broker, and keyfile with the new key file.Update your BIND configuration:# nsupdate -k $keyfile server 127.0.0.1 update delete broker.example.com A update add broker.example.com 180 A 10.0.0.1 send - Press Ctrl+D to save the changes and close the session.
Note
If you use the kickstart or bash script, the
configure_named and configure_dns_resolution functions perform these steps.