La commande 'lsnamsv' affiche le contenu du fichier '/etc/resolv.conf' :

# lsnamsv -C
nameserver      172.31.237.95
nameserver      172.31.237.214
domain  sddc

<!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } -->

lsnamsv

Command Purpose

Shows name service information stored in the database.

 

Syntax

 

lsnamsv { -C | -SAttributeList ...″ } [ -Z ]

 

Description

The lsnamsv high-level command shows customized, TCP/IP-based name service information from the /etc/resolv.conf file only. No information from the name server database is shown. The command can extract all customized name service information or selected name service attribute information from the configuration database. 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 lsnamerslv fast path to run this command.

 

Flags

 

-C Extracts all customized name service configuration information.

 

-S AttributeList ...Specifies a selected set of attributes to be extracted from the system configuration database. Attributes can be the following: domain Domain name nameserver Internet address of name server in dotted decimal format

 

-Z Specifies that the output be in colon format. This flag is used when the lsnamsv command is invoked from the SMIT usability interface.

 

Examples

  1. To list all customized name service configuration information in dotted decimal format, enter the following command:

lsnamsv -C

  1. 2. To list selected attributes, enter the following command:

lsnamsv -S "domain nameserver"

 

The -S flag indicates that the quoted list that follows contains a list of attributes to display

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone