Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

resolv.conf got deleted after reboot

jr-phDBAMay 1 2017 — edited May 2 2017

Hi,

I've installed Solaris 11.3 and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.

I used below to configure both settings. Kindly advice what is wrong/missing. Thank you

# svccfg -s dns/client

svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa xx.xx.xx.bb)

svc:/network/dns/client> setprop config/domain = domain.com

svc:/network/dns/client> listprop config

config                      application

config/value_authorization astring     solaris.smf.value.name-service.dns.client

config/nameserver          net_address xx.xx.xx.aa xx.xx.xx.bb

config/domain       astring domain.com

svc:/network/dns/client> exit

# svcadm refresh dns/client

# svcadm restart dns/client

# svccfg -s name-service/switch

svc:/system/name-service/switch> setprop config/host = "files dns"

svc:/system/name-service/switch> setprop config/ipnode = astring: "files dns"

svc:/system/name-service/switch> listprop config

config                      application

config/default             astring     files

config/value_authorization astring     solaris.smf.value.name-service.switch

config/printer             astring     "user files"

config/host                astring     "files dns"

config/ipnode              astring     "files dns"

svc:/system/name-service/switch> exit

# svcadm refresh name-service/switch

# svcadm restart name-service/switch

This post has been answered by jr-phDBA on May 2 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2017
Added on May 1 2017
6 comments
3,623 views