In Solaris 11 the /etc/resolv.conf is (automatically) populated with svc:/network/dns/client service.
Modifications will be lost when the svc:/network/dns/client service is restarted.
root@smfSolaris11:~/jms# cat /etc/resolv.conf
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
#
#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
# See resolv.conf(4) for details.
search smf.com
nameserver x.x.x.x
nameserver x.x.x.y
Step:
svc:/network/dns/client> listprop config
config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
config/nameserver net_address x.x.x.x x.x.x.y
config/search astring smf.com
svc:/network/dns/client> setprop config/search = symcsmf.com
svc:/network/dns/client> listprop config
config application
config/value_authorization astring solaris.smf.value.name-service.dns.client
config/nameserver net_address x.x.x.x x.x.x.y
config/search astring symcsmf.com
svc:/network/dns/client> exit
root@smfSolaris11:~/jms# svcadm refresh dns/client
root@smfSolaris11:~/jms# svcadm restart dns/client
root@smfSolaris11:~/jms# cat /etc/resolv.conf
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
#
#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
# See resolv.conf(4) for details.
search symcsmf.com
nameserver x.x.x.x
nameserver x.x.x.y
To change
- nameserver: setprop config/nameserver = (192.168.1.1 4.2.2.2 8.8.8.8)
- domain: setprop config/domain = smthing.com
More reference : http://timwort.org/classp/TS11_HTML/mod06.htm
No comments:
Post a Comment