mknamsv Command

Purpose

Configures TCP/IP-based name service on a host for a client.

Syntax

mknamsv { -a "Attribute=Value ..." | -A FileName }

Description

The mknamsv high-level command configures a TCP/IP instance to use a name server. It calls the namerslv low-level command to configure the resolv.conf file appropriately.

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

Flags

Item Description
-A FileName Specifies the name of the file containing named daemon initialization information.
-a "Attribute=Value..." Specifies a list of attributes with corresponding values to be used for updating the named server initialization files in the database. Attributes available are:
domain
Domain name
nameserver
Internet address of name server in dotted decimal format

Examples

  1. To configure the name server initialization files, enter the command in the following format:

    mknamsv  -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 configure name server initialization files according to information in another file, enter the command in the following format:

    mknamsv  -A namsv.file

    In this example, the file that contains the configuration information is namsv.file. The "attribute=value" pairs must not be placed in one line. As an example, enter the "attribute=value" pairs to namsv.file in the following format:
    domain=austin.century.com
    nameserver=192.9.200.1

Files

Item Description
/etc/resolv.conf Contains domain name server information for local resolver routines.