7.3.3. Verifying the BIND Configuration

Before continuing with further configuration, ensure BIND is configured correctly so that the broker's host name resolves.
# dig @127.0.0.1 broker.example.com
Inspect the ANSWER SECTION of the output, and ensure it contains the correct IP address.
Ensure the local BIND instance is being used by the broker:
# dig broker.example.com
	
(An example AUTHORITY section:)
;; AUTHORITY SECTION:
example.com.    1    IN    NS    ns1.example.com.
Inspect the AUTHORITY SECTION of the output to verify that it contains the broker host name. If you have BIND configured on a separate host, verify that it returns that host name.
The BIND instance as configured will not answer questions about domains it does not own, but if you add one or more secondary nameservers in the /etc/resolv.conf file, they can be queried for other domains. Because the dig command will only query the BIND instance by default, use the host command to test requests for other host names.
# host icann.org

icann.org has address 192.0.43.7
icann.org has IPv6 address 2001:500:88:200::7
icann.org mail is handled by 10 pechora1.icann.org.