Oracle Solaris System Administration (MOSC)

MOSC Banner

configure dns/client with svccfg

edited Sep 25, 2019 5:22AM in Oracle Solaris System Administration (MOSC) 2 commentsAnswered ✓

Hi !

I wonder how current svccfg from release 11.4 (as a one-liner!) cmd syntax might look like - changing the name server address, because Oracle has changed the code and behaviour - for reasons.

In 11.3 it was like this :

$ svccfg -s network/dns/client setprop config/nameserver = net_address: '(172.23.72.6 172.23.72.8)'

but this doesn't work anymore in 11.4:

$svccfg -s network/dns/client setprop config/nameserver = net_address: '(172.23.72.6 172.23.72.8)'

svccfg: Invalid "net_address" value "172.23.72.6 172.23.72.8".

The only way I currently know is:


$ svccfg

svc:> select dns/client

svc:/network/dns/client> setprop config/nameserver = net_address: \

> (172.23.72.6 172.23.72.8)

I tried different syntax styles, but they all end negative.

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