[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1


chnamsv Command

Purpose

Changes TCP/IP-based name service configuration on a host.

Syntax

chnamsv [ -a"Attribute=Value ..." | -A FileName ]

Description

The chnamsv high-level command changes a TCP/IP-based name service configuration on a host. The command changes the /etc/resolv.conf file only. The command does not change the name server database.

If you change the name service configuration for a client, the chnamsv command calls the namerslv low-level command to change the resolv.conf configuration file appropriately.

You can use the Network application in Web-based System Manager (wsm) to change network characteristics. You could also use the System Management Interface Tool (SMIT) smit namerslv fast path to run this command.

Flags


-A FileName Specifies name of file containing the named server initialization information.
-a"Attribute=Value..." Specifies a list of attributes and their corresponding values to be used for updating the named server initialization files in the database.

Attributes can be either of the following:

domain
The domain name of the changed named server

nameserver
The Internet address of the changed name server

Examples

  1. To update the named server initialization files, enter the command in the following format:
    chnamsv -a"domain=austin.century.com nameserver=192.9.200.1"
    In this example the domain name and name server address are updated. The previous domain and name server are overwritten.
  2. To update name server initialization files according to information in another file, enter the command in the following format:
    chnamsv -A namsv.file
    In this example, the file that contains the updated information is namsv.file.

Files


/etc/resolv.conf Contains DOMAIN name server information for local resolver routines.

Related Information

The namerslv command.

TCP/IP Name Resolution in AIX 5L Version 5.1 System Management Guide: Communications and Networks.

For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.1 Web-based System Manager Administration Guide.

TCP/IP Reference in AIX 5L Version 5.1 System Management Guide: Communications and Networks.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]