Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Configuring VMware vCenter Server Heartbeat to update BIND9 DNS Servers deployed in a WAN

Purpose

This article provides instructions for configuring VMware vCenter Server Heartbeat to update BIND9 DNS servers when deployed in a WAN.

Resolution

The utility NSUpdate, used for updating the BIND9 DNS server, must be installed on the VMware vCenter Server Heartbeat server pair. This article does not cover the installation or detail of the utility required by the vendor's DNS server. Additionally, this article provides a sample script and the steps required to configure VMware vCenter Server Heartbeat to run the script.
  1. Create a script that includes the following commands:

    NSUPDATE "update delete $HOSTNAME A\n";
    NSUPDATE "update add $HOSTNAME $TTL A $dnsip\n";


    Sample script to update BIND9 DNS servers:

    Note: It is necessary to create a Transaction Signature (TSIG) to use the $keyfile variable as well as set the other variables

    chdir ($KEYDIR);
    open (NSUPDATE, "| /usr/sbin/nsupdate -k $KEYFILE");
    print NSUPDATE "server $NAMESERVER\n";
    print NSUPDATE "update delete $HOSTNAME A\n";
    if ($dnsip ne 'NO') {print NSUPDATE "update add $HOSTNAME $TTL A $dnsip\n";}
    # print NSUPDATE "show\n";
    print NSUPDATE "send\n";
    close (NSUPDATE);

  2. To create a Network Configuration Task via the VMware vCenter Server Heartbeat Console:

    1. Launch the VMware vCenter Server Heartbeat Console.
    2. Click Application.
    3. Click the Tasks tab.
    4. Click User Accounts.
    5. Click Add.
    6. Enter the credentials for an account with rights to update the DNS
    7. Click OK and Close.
    8. Click Add to add a new task.
    9. Provide a descriptive name for the Task.
    10. Choose Network Configuration for Task type.
    11. Choose either Primary or Secondary for the server the task needs to run on, as appropriate.
    12. In the Command field, enter the path to the previously configured script file.
    13. In the Run As field, choose the appropriate user account from the drop-down and click OK.

Additional Information

vCSHB-Ref-1599

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions