Updates a DNS server.
nsupdate [ -a ] [ -g ] [ -i ] [ -q ] [ -v ] [ -? ] [ -k KeyFile] [ -h HostName ] [ -d DomainName ] [ -p PrimaryName ] [ -r IPAddress ] [ -s "CommandString"]
The nsupdate command updates the DNS server. The nsupdate command runs in either interactive mode or command mode. If a command string is provided, the nsupdate command runs the command string and then exits. The return code is dependent upon the successfulness of the command string.
The valid internal commands for the command string or interactive modes are:
The -g flag allows you to generate a set of keys to distribute to clients for use in secure mode. This flag takes the hostname and the primaryname and generates a public and a private key. For secure mode zone operation, the public is entered into the DNS server's database for the data to secure and the private key is placed on the client so that it can update that information at a later time.
The -a flag allows you to enter administrative mode. The zone may be secured by a zone key. This key gives the user full access to the zone. The -a flag tries to use the zone key for update signatures instead of the individual records key.
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
Access Control: Any User
To initialize a packet, delete all A records for the specified hostname, add an A record for the hostname to 9.3.145.2 association, signed and valid for 300 seconds with a default KEY pad of 3110400, transmit the packet, and quit, enter: (where ";" is pressing the enter key)
r;d;a;*;a;a;9.3.145.2;s;300;3110400;x;q
If any one of the items had failed, a message would be printed. In command line mode, an error would cause the program to exit and return 1.
/usr/sbin/nsupdate | Contains the nsupdate command. |
/usr/sbin/named | Contains the DNS server. |
DHCP Client Configuration File
DHCP Server Configuration File
TCP/IP Address and Parameter Assignment - Dynamic Host Configuration Protocol (DHCP) in AIX 5L Version 5.2 System Management Guide: Communications and Networks.
TCP/IP Daemons in AIX 5L Version 5.2 System Management Guide: Communications and Networks.