Solaris 11 commands (NIS/DNS)
root@edus008:/var/yp# svccfg
svc:> select name-service/switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> setprop config/password = "file nis"
svc:/system/name-service/switch> setprop config/group = "file nis"
svc:/system/name-service/switch> setprop config/ipnodes = astring: "files dns"
svc:/system/name-service/switch> select name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> validate
svc:/system/name-service/switch:default> select dns/client
svc:/network/dns/client> setprop config/nameserver=net_address: ( xxxx xxxx )
svc:/network/dns/client> select dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> validate
svc:/network/dns/client:default> select nis/domain
svc:/network/nis/domain> setprop config/domainname = "xxxx"
svc:/network/nis/domain> select nis/domain:default
svc:/network/nis/domain:default> refresh
svc:/network/nis/domain:default> validate
svc:/network/nis/domain:default> exit
root@edus008:/var/yp# svcadm enable dns/client
root@edus008:/var/yp# nslookup www.gogole.com
Server: xxxxxx
Address: xxxxxxx#53
Non-authoritative answer:
Name: www.gogole.com
Address: 74.125.225.223
Name: www.gogole.com
Address: 74.125.225.215
Name: www.gogole.com
Address: 74.125.225.216
svc:> select name-service/switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> setprop config/password = "file nis"
svc:/system/name-service/switch> setprop config/group = "file nis"
svc:/system/name-service/switch> setprop config/ipnodes = astring: "files dns"
svc:/system/name-service/switch> select name-service/switch:default
svc:/system/name-service/switch:default> refresh
svc:/system/name-service/switch:default> validate
svc:/system/name-service/switch:default> select dns/client
svc:/network/dns/client> setprop config/nameserver=net_address: ( xxxx xxxx )
svc:/network/dns/client> select dns/client:default
svc:/network/dns/client:default> refresh
svc:/network/dns/client:default> validate
svc:/network/dns/client:default> select nis/domain
svc:/network/nis/domain> setprop config/domainname = "xxxx"
svc:/network/nis/domain> select nis/domain:default
svc:/network/nis/domain:default> refresh
svc:/network/nis/domain:default> validate
svc:/network/nis/domain:default> exit
root@edus008:/var/yp# svcadm enable dns/client
root@edus008:/var/yp# nslookup www.gogole.com
Server: xxxxxx
Address: xxxxxxx#53
Non-authoritative answer:
Name: www.gogole.com
Address: 74.125.225.223
Name: www.gogole.com
Address: 74.125.225.215
Name: www.gogole.com
Address: 74.125.225.216
Comments