NAME

makedns - sets up domain name services (DNS).


SYNOPSIS

makedns [-h|--help]

makedns [-n|--new] [noderange]

makedns [-d|--delete noderange]


DESCRIPTION

makedns configures a DNS server on the local machine from the /etc/hosts file entries if no noderange specified. It also uses the following attributes set in the site table as default values: domain, forwarders, nameservers. The net and mask attributes in the networks table will also be used. Only entries in /etc/hosts or the hosts specified by noderange that are part of a network listed in the networks table will be added to DNS.

makedns can only handle hostnames from a single domain, normally a private domain just for the cluster. The typical cluster set up is for site.domain to be set to the cluster domain, site.nameservers to be set to the cluster-facing IP address of the management node, and site.forwarders to be set to the IP address of one or more nameservers at your site that can resolve names outside of your cluster. With this set up, all nodes ask the management node to resolve names, and if it is a name that the MN DNS does not know about, it will ask the outside world.

For more information on Cluster Name Resolution: https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Cluster_Name_Resolution


OPTIONS

-n|--new

Use this flag to create new named configuration and db files.

-d|--delete noderange

Remove the DNS records for the hosts specified by noderange.


Examples

  1. To set up DNS for all the hosts in /etc/hosts file.

    makedns

  2. To set up DNS for node1.

    makedns node1

  3. To create a new named configuration and db files for all hosts in /etc/hosts.

    makedns -n

  4. To delete the DNS records for node1.

    makedns -d node1


SEE ALSO

makehosts(8)