|
manual abstract
The host name that you specified in the nslookup(8) command will be appended with the domain name which registered in the DNS search path, and be referred to the DNS server in the FQDN format. ■ If multiple search paths are registered, domain names are assigned in order of registration and referred to the DNS server. ■ If you set the DNS search path, you must also specify the DNS server. 238 SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised February 2010 setnameserver(8) EXAMPLES ■ The DNS domain name (set by the sethostname(8) command) and search path (set by the setnameserver(8) command) together can contain up to 256 characters. ■ To change the DNS servers and the DNS search paths in XSCF, execute the applynetwork(8) command. Then, use the rebootxscf (8) command to reset XSCF, completing the change. ■ The currently set DNS server can be checked by using the shownameserver(8) command. EXAMPLE 1 Adds the hosts with the IP addresses 192.168.1.2, 10.18.108.10, and 10.24.1.2 as DNS server. Names are solved in the order specified. xscf> setnameserver 192.168.1.2 10.18.108.10 10.24.1.2 EXAMPLE 2 Deletes the host with the IP address 10.18.108.10 from the DNS server. xscf> setnameserver -c del 10.18.108.10 EXAMPLE 3 Deletes the first two DNS servers whose IP addresses are 10.24.1.2. This case is when a DNS server is listed multiple times. xscf> shownameserver nameserver 10.24.1.2 nameserver 10.24.1.2 nameserver 10.24.1.2 xscf> setnameserver -c del 10.24.1.2 10.24.1.2 xscf> shownameserver nameserver 10.24.1.2 EXAMPLE 4 Deletes all the DNS servers. xscf> setnameserver -c del -a example 5 Registers the domain names search1.com, search2.com, search3.com, search4.com, and search5.com to the search path. xscf> setnameserver -c addsearch search1.com search2.com search3.com search4.com search5.com EXAMPLE 6 Deletes the domain name search5.com from the DNS search path. xscf> setnameserver -c delsearch search5.com System Administration 239 setnameserver(8) EXIT STATUS SEE ALSO EXAMPLE У Deletes all the registered domain names from the DNS search path. xscf> setnameserver -c delsearch -a The following exit values are returned: G Successful completion. >G An error occurred. applynetwork (8), sethostname (8), shownameserver (8) 240 SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised February 2010 setnetwork(8) NAME SYNOPSIS DESCRIPTION Privileges setnetwork - set or remove an XSCF network interface setnetwork [-m addr] interface address setnetwork -c {up | down} interface setnetwork [ [-q] -{y|n}] -r interface setnetwork -h setnetwork(8) command sets or removes an XSCF network interface. The following settings can be made for the specified network interface: ■ Whether to enable or disable the network interface. ■ IP address ■ Netmask When you set an IP address or netmask, the specified network interface will be enabled at the same time as the setting. When you removed the netmask interface, the specified network interface will be disabled at the same time as the removal. And when the routing information is set to the target network interface, it will be removed together. You must have platadm privileges to run this command. Refer to setprivileges(8) for more information. System Administration 241 setnetwork(8) OPTIONS OPERANDS The following options are supported: -c {up | down} Specifies whether to enable the specified network interface. One of the following values can be specified. If none of them is specified, an error occurs. up Enables the network interface. down Disables the network interface. Displays usage statement. When used with other options or operands, an error occurs. Specifies a netmask. To specify addr, use the standard form of four integer values delimited by "." (periods). For example, use xxx.xxx.xxx.xxx, where xxx is an integer from 0-255. Zero suppression can be used to specify the integer. If the -m option omitted, one of the following netmask values is set depending on the address specified in the address operand: ■ If the address specified is class A (e.g. 20.1.1.1), the netmask value 2 5 5.0.0.0 is set. ■ If the address specified is class B (e.g. 136.18.1.1), the netmask value 255.255.0.0 is set. ■ If the address specified is class C (e.g. 200.18.108.1), the netmask value 255.255.255.0 is set. -n Automatically answers "n" (no) to all prompts. -q Suppresses all messages to stdout, including prompts. -r Removes the IP address and netmask of the network interface. -y Automatically answers "y" (yes) to all prompts. The following operands are supported: address Specifies an IP address. To specify address, use the standard form of four integer values delimited by ". " (periods). For example, use xxx.xxx.xxx.xxx, where xxx is an integer from 0-255. Zero suppression can be used to specify the integer. You cannot specify the loopback address (127.0.0.0/8), the network address, a broadcast address, or class D o...
Other models in this manual:Desktops - SPARC ENTERPRISE M3000 (1.89 mb)