Oracle Solaris System Administration (MOSC)

MOSC Banner

changing dns/client property doesn't survive reboot

edited Nov 27, 2019 7:36AM in Oracle Solaris System Administration (MOSC) 19 commentsAnswered ✓

Hi!

Solaris 11.3

whenever I change the SMF dns/client service like this:

$ svccfg -s svc:/network/dns/client setprop config/search = astring: '("lab.dynatrace.org" "dynatrace.org")'

$ svcadm refresh dns/client

$ svcadm restart dns/client

$ nscfg export svc:/network/dns/client

$ cat /etc/resolv.conf

#

# _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.

domain lab.dynatrace.org

search lab.dynatrace.org dynatrace.org

nameserver 10.102.32.11

nameserver 10.102.32.10

and I reboot .. the search domain is lost.

fun fact: all other stuff I added, like name server or domain are boot persistent.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center