cc/td/doc/product/rtrmgmt/ciscoasu/nr/nr30t
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring Dynamic DNS Update

Configuring Dynamic DNS Update

This chapter explains how to use dynamic DNS update with Network Registrar servers using both the GUI and the CLI. You can configure dynamic DNS update after you configure your DHCP servers.

This is the process you follow to configure dynamic DNS update:

Step 1 Configure the DHCP scope to do dynamic DNS updates.

Step 2 Configure the DNS zones to accept dynamic DNS updates.

Step 3 Define advanced dynamic DNS update support. You rarely need to modify the system defaults for the advanced parameters; however they are described in "Defining Advanced Dynamic DNS Update Support" section for your reference.

Step 4 Reload the servers you have configured.

The remainder of this chapter describes each step in more detail. lists the dynamic DNS update configuration topics explained in this chapter and their associated sections.
Table 8-1: Dynamic DNS Update Configuration Topics
If you want to... Go to this section...

Know more about why you would configure dynamic DNS update

"About Dynamic DNS Update" section

Know more about how the DHCP Event Service works when dynamic DNS update is configured

"About the DHCP Event Service" section

Configure dynamic DNS update for the scope

"Configuring Dynamic DNS for the Scope" section

Enable dynamic DNS updates from host names

"Enabling Dynamic DNS Updates" section

Reload the servers after you have configured dynamic DNS update

"Reloading the Servers" section

Further define dynamic DNS update support by changing system defaults for advanced parameters

"Defining Advanced Dynamic DNS Update Support" section

About Dynamic DNS Update

Administrators of standard DNS have to update multiple configuration files and restart the DNS server or servers to change the association between a name and an address. This restricts the usefulness of DHCP, because an individual client's address may not be the same for more than a day (or even a few hours). While there is no requirement that DNS names exist for every host, there are some Internet services that will not operate correctly unless the hosts appear in DNS. One solution is to place unique names in DNS for all of the addresses allocatable by DHCP, for example DHCP25.example.com. While this method works, you may need to have more descriptive names in DNS for your clients.

Network Registrar's dynamic DNS update allows the DHCP server to tell the DNS server or servers when a name-to-address association has been created or changed. When a host obtains a lease for an address, Network Registrar tells DNS to add it to its database. When the lease expires, or when the client gives up an address, Network Registrar tells DNS to remove the association. In normal operation you, as administrator, do not have to reconfigure DNS, no matter how frequently the clients' addresses change through the use of DHCP. Network Registrar uses the host name that the client computer provides. If you choose, Network Registrar can automatically create names for clients who have not provided one.

The Network Registrar dynamic DNS update is used for individual hosts instead of the DNS servers themselves. DNS servers' addresses are entered into the DHCP client information database and should therefore only be changed infrequently. DNS servers' addresses are often known to one another for backup or performance reasons. We do not recommend that you change their addresses in a mixed environment. For security, the DHCP servers must know the addresses of the DNS servers that they update, and the DNS servers must know the addresses of the DHCP servers from which they are authorized to accept updates.

Dynamic DNS resource records do not appear in the DNS GUI interface. If you want to confirm that the DNS update is working, type:

nrcmd> zone testzone listRR dynamic
 

A complete list of dynamic updates appears.

About the DHCP Event Service

The Network Registrar DHCP server stores all pending DNS update information on disk. If DHCP cannot communicate with a particular DNS server, it periodically tests if communications have been re-established, and submits all pending updates when they have been updated. This test typically occurs once every 40 seconds until communication with DNS is re-established.

Configuring Dynamic DNS for the Scope

Using the GUI:

Step 1 From the Server Manager window (Figure 2-3), select the DHCP scope you want to associate with dynamic DNS update.

Step 2 Click the Show Properties toolbar button.

Step 3 In the DNS tab of the DHCP Scope Properties dialog box (Figure 8-1), select the Perform dynamic DNS updates check box.


Figure 8-1: DNS Tab (DHCP Scope Properties Dialog Box)


Step 4 Enter the forward DNS zone name.

This is the name of the DNS zone to which a DHCP client's host name should be added (A record).

Step 5 Enter the forward DNS Server's IP address.

This is the IP address of the primary DNS server on which the forward zone resides.

Step 6 Enter the reverse DNS zone name.

This is the name of the inverse (in.addr.arpa) zone that is updated with the PTR and TXT records.

Step 7 Enter the Reverse DNS Server's IP address.


Note The number of host bytes field indicates the number of IP address octets that are in the host name of the inverse DNS zone as opposed to the actual zone name.

This is a non-editable field and the number is derived from the network number of the reverse zone.

Step 8 Select whether to update DNS before or after providing a lease.

The default is "After responding to client." Do not choose "Before responding to client" if you have Windows 95 clients, because updating DNS before responding to a lease can cause delays which then cause problems with Windows 95 DHCP clients.

Step 9 If you want Network Registrar to create host names for hosts that do not supply names, select the Create host names for hosts that do not supply one check box.

If you select this check box, Network Registrar will create a unique host name by prepending the word "dhcp" to the server's ID within the cluster followed by a number, such as dhcp-1-1...dhcp-1-n.

Step 10 If you want Network Registrar to use a specific host name prefix, enter the prefix.

Step 11 Click OK.

Using the CLI:

You can use the scope set and enable commands to enable Dynamic DNS for the scope.

Step 1 Use the scope set command to set the values for the zone name.

This is the name of the zone to which a DHCP client's host name should be added. For example, if you want your DNS name to be beth.QuickExample.com, specify the zone QuickExample.com.

    nrcmd> scope testScope set dns-zone-name=QuickExample.com
     
    

Step 2 Use the scope set command to set DNS server's IP address.

You should specify the IP address of the primary server on which both the forward and reverse zones reside. Both zones must be primary servers, and must be on a server that supports the DDNS protocol.

    nrcmd> scope testScope set dns-server-addr=192.168.1.1
     
    

Step 3 Use the scope set command to set DNS reverse zone's name.

This is the name of the zone to be updated with PTR and TXT records.

    nrcmd> scope testScope set 
    dns-reverse-zone-name=1.168.192.in-addr.arpa

Step 4 Use the scope set command to set DNS reverse zone's IP address.

    nrcmd> scope testScope set 
    dns-rev-server-addr=192.168.1.14

Step 5 Use the scope enable command to enable dynamic updates for this scope.

    nrcmd> scope testScope enable dynamic-dns
     
    

Step 6 Use the server command to reload the server.

    nrcmd> server DHCP reload
    

Note 
For dynamic DNS update, DHCP uses the host name that is passed to the server in the host name DHCP option. With Microsoft clients this is the name that appears in the Network Control Panel Identification dialog box, not the name that appears in the Protocols/TCP-IP Properties dialog box. The name is set on the client's computer.

For security purposes, Network Registrar's Dynamic DNS update process does not modify or delete a name an administrator has manually entered into the DNS database.

Enabling Dynamic DNS Updates

Using the GUI:

Step 1 From the Server Manager window (Figure 2-3), select the DNS zone that you want to configure for dynamic DNS updates.

Step 2 Click the Show Properties toolbar button.

Step 3 From the DNS Zone Properties dialog box, click the DHCP tab (Figure 5-7).

Step 4 Select the Enable dynamic DHCP updates check box.

Step 5 Specify the address of the DHCP server from which DNS allows updates.

If you do not list a DHCP server, dynamic updates will not occur.

Step 6 Repeat steps 1 through 5 for both the primary and reverse DNS zones.

For example, the primary zone example.com and the reverse zone 1.168.192.in-addr.arpa.

Using the CLI:

Step 1 Use the zone enable command to enable dynamic DNS updates from host names.

    nrcmd> zone example.com enable dynamic
     
    

Step 2 Use the zone set command to specify the name of the server.

    nrcmd> zone example.com set dynupdate-set=192.168.1.10
     
    

Repeat this procedure for both the primary and reverse DNS zones; for example, the primary zone example.com and the reverse zone 1.168.192.in-addr.arpa.


Note If the DNS zone and the DHCP scope are on the same machine, be sure to include the loopback address 127.0.0.1 in the DNS server's list of address from which it accepts updates to ensure that dynamic updates occur in both the primary and reverse zones.

Reloading the Servers

After you have configured the DNS and DHCP servers, you must reload them to write the configuration information to the Network Registrar database.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-3), select the first server you want to reload, for example the DNS server.

Step 2 Click the Control toolbar button.

Step 3 From the Control dialog box, click Reload.

Step 4 Click OK.

Step 5 Repeat steps 1 through 4 for the second server; for example, the DHCP server.

Using the CLI:

Use the server command to reload the server.

nrcmd> server DNS reload
 

Repeat for the DHCP server.

Defining Advanced Dynamic DNS Update Support

If you plan to use dynamic DNS update, you must configure both the DHCP and DNS servers. For more information about how dynamic DNS update works with Network Registrar servers, see the "About Dynamic DNS Update" section.


Note You rarely need to modify the system defaults for advanced parameters when defining advanced dynamic DNS update support; however they are described in the following sections for your reference.

Defining advance dynamic DNS update suppot involves setting these parameters:

Setting the Number of DNS Packets

You can control the number of buffers that DHCP allocates for communication with DNS servers. You can reduce the DHCP server's memory requirements by reducing the number of DNS packets, at the risk of missing updates.

The default is 500.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).


Figure 8-2: Advanced DNS Tab (DHCP Server Properties Dialog Box)


Step 4 Set the number of DNS packets in the Number of DNS packets field.

Step 5 Do not set this any lower than the number of DHCP responses in the Advanced tab of the DHCP Server Properties dialog box. For more information, see the "Defining Advanced Parameters" section.

Using the CLI:

Do not set this any lower than the number of DHCP responses (max-dhcp-responses).

Use the dhcp command to set the max-dns-packets property.

        nrcmd> dhcp set max-dns-packets=400
        

Setting the DNS Packet Size

Do not change this value unless instructed by Technical Support.

The default is 512 bytes.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).

Step 4 Enter the value in bytes in the DNS packet size field.

Step 5 Click OK.

Setting the Number of DNS Retries

You can control the number of times the DHCP server attempts to send dynamic updates to a DNS server.

The default is 3.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).

Step 4 Enter a value in the Number of DNS retries field.

Step 5 Click OK.

Using the CLI:

Use the dhcpcommand to set the max-dns-retries property.

nrcmd> dhcp set max-dns-retries=6

Setting the Number of DNS Renaming Retries

You can control the number of times the DHCP server can try to add a host into DNS even if it detects that the host's name is already present in DNS. This value controls the number of times the DHCP server will attempt to modify a host's name to resolve a conflict.

The default is 3.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).

Step 4 Enter a value in the Number of DNS remaining retries field.

Step 5 Click OK.

Using the CLI:

Use the dhcp command to set the max-dns-renaming-retries property.

nrcmd> dhcp set max-dns-renaming-retries=6

Setting the DNS Request Timeout

You can controls the number of milliseconds the DHCP server will wait for a response before retrying a dynamic DNS request.

The default is 5000 milliseconds.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).

Step 4 Enter a value in milliseconds in the DNS request timeout field.

Step 5 Click OK.

Using the CLI:

Use the dhcp command to set the dns-timeout property.

nrcmd> dhcp set dns-timeout=3600

Setting the Maximum DNS Record Time to Live

You can set the TTL ceiling, in seconds, for DNS records added through dynamic DNS. When the DHCP server adds a DNS record, it sets the TTL to the smaller of one-third of the lease time, or this ceiling value. The DNS record's effective TTL may be determined by the DNS zone's minimum TTL. For more information, see the "Setting Maximum Cache TTL" section.

The default is 86400 seconds.

Using the GUI:

Step 1 From the Server Manager window (Figure 2-10), select the DHCP server for which you want to configure advanced dynamic DNS update options.

Step 2 Click the Show Properties toolbar button.

Step 3 Click the Advanced DNS tab of the DHCP Scope Properties dialog box (Figure 8-2).

Step 4 Enter a value in seconds in the Maximum DNS record time to live field.

Step 5 Click OK.

Using the CLI:

Use the dhcp command to set the max-dns-ttl property.

nrcmd> dhcp set max-dns-ttl=3600

hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Nov 18 13:41:49 PST 1999
Copyright 1989-1999©Cisco Systems Inc.