FUJITSU SPARC ENTERPRISE M9000 User Manual

Page 263

Advertising
background image

setnameserver(8)

System Administration

239

■

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.

EXAMPLES

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.

EXAMPLE 2

Deletes the host with the IP address 10.18.108.10 from the DNS server.

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.

EXAMPLE 4

Deletes all the DNS servers.

EXAMPLE 5

Registers the domain names search1.com, search2.com, search3.com,
search4.com, and search5.com to the search path.

EXAMPLE 6

Deletes the domain name search5.com from the DNS search path.

XSCF>

setnameserver 192.168.1.2 10.18.108.10 10.24.1.2

XSCF>

setnameserver -c del 10.18.108.10

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

XSCF>

setnameserver -c del -a

XSCF>

setnameserver -c addsearch search1.com search2.com

search3.com search4.com search5.com

XSCF>

setnameserver -c delsearch search5.com

Advertising