Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
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.
-
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); -
To create a Network Configuration Task via the VMware vCenter Server Heartbeat Console:
-
Launch the VMware vCenter Server Heartbeat Console.
-
Click Application.
-
Click the Tasks tab.
-
Click User Accounts.
-
Click Add.
-
Enter the credentials for an account with rights to update the DNS
-
Click OK and Close.
-
Click Add to add a new task.
-
Provide a descriptive name for the Task.
-
Choose Network Configuration for Task type.
-
Choose either Primary or Secondary for the server the task needs to run on, as appropriate.
-
In the Command field, enter the path to the previously configured script file.
-
In the Run As field, choose the appropriate user account from the drop-down and click OK.
-
Additional Information
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.
Actions
- KB Article:
- Updated:
- Categories:
- Product Family:
- Products:
- Product Versions:

