4.10. Extending DNS

Rocks provides a mechanism to put external hostnames under the DNS control of your cluster. Generally, external hosts have names served by site-wide DNS servers. However if there is no external DNS server available, you may want to use your frontend's DNS server to handle the name to IP mappings for certain non-cluster nodes.

Since the DNS configuration file is automatically generated by Rocks, you cannot add static configuration to the standard zone files in /var/named. Instead, you need to put local name mappings in the file:


And reverse mappings (IP to name) in:


Where local-network-prefix for a default rocks is 1.10. That is, the above file name would be:


To add the mappings in the above .local files to the running configuration, execute:

# rocks sync config

These files are in the BIND configuration format, just like the standard rocks.domain and reverse.rocks.domain files.


Your external hosts will have names in the .local cluster domain.


Errors in your local DNS files will cause the entire local cluster domain naming to fail. Proceed with caution.