Creating a DNS A Record Using the DNS Commands

Create a floating CommServe name before setting up the production and standby CommServe hosts for a CommServe Failover configuration.

This can done by creating a DNS A record in the DNS server with a virtual host name and IP address of the active CommServe host.

Use the following step to create an A Record in Windows 2008 Server. For Windows 2012 Server, refer to Creating a DNS A Record Using the PowerShell Commands.

Before You Begin

  • Enable DNS Server Role

  • Login to host computer as member of the Administrators group

  • Have the host name and IP address ready

  • Use an account with full permissions to create and delete A records in the DNS Server for the floating CommServe name.

  • If you have multiple NICs, determine the IP address that must be used for populating the Floating CommServe name.

Create a DNS A Record

Use the following command to add an A record on the Domain Name Server:

dnscmd.exe ServerName /RecordAdd ZoneName ComputerName TTL A IPAddress /f

Where:

  • ServerName - Specifies the DNS server that you are planning to manage.

  • ZoneName - Specifies the zone in which the record will reside.

  • ComputerName - Specifies the name of the computer that needs to be created in the DNS server with the specified IP address.

  • TTL - Specifies the amount of Time-To-Live (TTL) for the resource record. Default value of TTL is 10 seconds.

  • A - Specifies the resource record type of the record you are adding.

  • IPAddress - The IP Address of the host /f Executes the command without asking for confirmation.

Example

Add A record for floating CommServe name

dnscmd.exe dnshost.mydomain.mycompany.com /RecordAdd mydomain.mycompany.com prodcs 10 A 100.10.15.52

Add A record for the physical CommServe host name (optional)

dnscmd.exe dnshost.mydomain.mycompany.com /RecordAdd mydomain.mycompany.com prodcs01 10 A 100.10.15.52

Delete a DNS A Record

Use the following command to delete an A record on the Domain Name Server:

dnscmd.exe ServerName /RecordDelete ZoneName ComputerName A IPAddress /f

where,

  • ServerName - Specifies the DNS server that you are planning to manage.

  • ZoneName - Specifies the zone in which the record resides.

  • ComputerName - Specifies the name of the computer that needs to be deleted in the DNS server with the specified IP address

  • A - Specifies the resource record type of the record you are adding

  • IPAddress - The IP Address of the host

  • /f - Executes the command without asking for confirmation.

Example

dnscmd.exe dnshost.mydomain.mycompany.com /RecordDelete mydomain.mycompany.com prodcs A 100.10.15.52 /f

What To Do Next

  • To make sure that the CommServe hosts use the new DNS record added above, run the ipconfig/flushdns command from the command line.

  • Make sure that the floating CommServe name is resolvable from both the production and standby CommServe hosts, using the "ping" or any other name resolution commands / tools.

  • If you have multiple NICs, make sure that the Floating CommServe name resolves to the correct IP.

Loading...