DNS Configuration and Management Manual (G06.25+, H06.03+)

Configuring and Managing DNS 9.2.3
HP DNS Configuration and Management Manual529432-001
3-3
Using the nsupdate Tool
In the example above,<“ and “>” are redirection operators.
Using the nsupdate Tool
The nsupdate tool can be used to dynamically update the DNS 9.2.3 Name Server.
The nsupdate tool uses the DNS resolver library to pass messages to a DNS server
that request the insertion or deletion of DNS resource records (RR). nsupdate can
take inputs from a file or the standard input.
The following example illustrates the interactive use of nsupdate. In this example,
nsupdate connects to a Name Server running on 10.53.0.1, then the existing record
old.example.com is deleted and a new record new.example.com is added.
Using the rndc Tool
The rndc (remote name daemon control) tool allows you to control the operation of
the DNS 9.2.3 Name Server.
In the following example, rndc stops the Name Server running on 10.53.0.1.
The communication between the Name Server and rndc is secured by a shared
secret key. rndc reads a configuration file to determine how to contact the Name
Server and decide what algorithm and key to use.
Specifying a Different resolv.conf File
The resolver uses the /etc/resolv.conf file by default.
Note. Since the manner of specifying pathnames is different in Guardian and OSS, you must
ensure that the new configuration file (after conversion) contains the appropriate path of the
zone files.
Example 3-2. Using the nsupdate Tool
/etc/dns923>nsupdate
>server 10.53.0.1
>update delete old.example.com A
>update add new.example.com 3600 A 10.1.1.1
>
>quit
Example 3-3. rndc Command
> rndc -s 10.53.0.1 stop