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:

  1. Edit the /etc/resolv.conf file on the broker host.
  2. Add the following entry as the first name server:
    nameserver  127.0.0.1
    Copy to Clipboard Toggle word wrap
  3. Save and close the file.
  4. Open a shell and run the following commands. This allows DNS access through the firewall, and ensures the named service starts on boot.
    # lokkit --service=dns
    # chkconfig named on
    Copy to Clipboard Toggle word wrap
  5. Use the service command to start the named service (that is, BIND) for some immediate updates:
    # service named start
    Copy to Clipboard Toggle word wrap
  6. Use the nsupdate command to open an interactive session to BIND and pass relevant information about the broker. In the following example, server, update, and send are commands to the nsupdate command.

    Important

    Remember to replace broker.example.com with the fully-qualified domain name, 10.0.0.1 with 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
    Copy to Clipboard Toggle word wrap
  7. 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.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat