Skip to main content

3.9.13 Setting the DNS for the XSCF


3.9.13 Setting the DNS for the XSCF
Use the shownameserver command to confirm the name server and search path used by the XSCF network. Also, to set the name server and search path, use the setnameserver command. Execute the setnameserver command with a user account that has the platadm privilege.
When specifying a search path, you also have to set a name server.
  1. Execute the shownameserver command to display name servers and search paths.
    If multiple name servers and search paths are registered, each appears on a separate line.
    The following example checks what is registered and finds three name servers and one search path.
XSCF> shownameserver
nameserver 10.0.0.2
namaserver 172.16.0.2
nameserver 192.168.0.2
search sub.example.com
  1. The following example checks what is registered and finds no name server and no search path.
XSCF> shownameserver
nameserver ---
search ---
  1. Execute the setnameserver command with a name server and search path specified.
    The following example adds the following three IP addresses as name servers: 10.0.0.2, 172.16.0.2, and 192.168.0.2.
XSCF> setnameserver 10.0.0.2 172.16.0.2 192.168.0.2
  1. The following example deletes all set name servers.
XSCF> setnameserver -c del -a
  1. The following example deletes two of the three duplicate settings of a registered DNS server.
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
  1. The following example adds one domain name, sub.example.com, as a search path.
XSCF> setnameserver -c addsearch sub.example.com
  1. The following example deletes all set search paths.
XSCF> setnameserver -c delsearch -a
  1. Execute the applynetwork and rebootxscf commands to reflect the name server and search path settings made with the setnameserver command.
XSCF> applynetwork
The following network settings will be applied:
bb#00 hostname :hostname-0
bb#01 hostname :hostname-1
DNS domain name :example.com
nameserver :10.23.4.3

interface :bb#00-lan#0
status :up
IP address :10.24.144.214
netmask :255.255.255.0
route : -n 0.0.0.0 -m 0.0.0.0 -g 10.24.144.1
(Omitted)
XSCF> rebootxscf -a
The XSCF will be reset. Continue? [y|n] :y
  1. The XSCF reboot disconnects the XSCF session, so log in again.
  1. Execute the shownameserver command to check name servers and search paths.