[OpenIndiana-discuss] Change resolv.conf without using the NWAM GUI

Carl Brewer carl at bl.echidna.id.au
Sat Jul 5 00:11:46 UTC 2025


On 4/07/2025 5:43 am, Gary Mills wrote:
> On Wed, Jul 02, 2025 at 05:30:26PM -0500, Tim Mooney via openindiana-discuss wrote:
>> nwamcfg works for configuring most of the rest of NWAM, though I
>> don't know if I have an example of using it for nameserver setup.
>>
>> It has a 'help' command, but you may want to do some refresher reading
>> on what 'ncp' 'ncu', and 'loc' are and how they are related.
> 
> Ah, that was the command I wanted.  It worked perfectly for changing
> the dns-nameservice-servers property and updating the /etc/resolv.conf
> file.  The nwamcfg command works like the configuration command for
> zones, making it easy for me to use.

vi used to be damn good.  Edit /etc/hosts, edit /etc/ifconfig.blah, edit 
/etc/resolv.conf (and nsswitch.conf if you had to) and it would be 
easily manageable without hiding all the stuff away behind inscrutable 
command line options and obtuse GUIs.

I pine for SunOS 4.1!

In all honesty, how are all this extra layers of complexity helping? 
This edits this, edits this, depends on this .. the config is where 
exactly now? All so some poorly coded GUI can manage to not always wreck 
your network at the cost of no-one knowing how it actually works anymore.

It's not an OI issue, we inherited it from decisions made at Sun and/or 
whatever various interests were poking away at posix etc.  It'd be 
awesome if it could be turned off - say for example /etc/rc.nostupidbs 
then means that the OS just reads the /etc files like it should.







More information about the openindiana-discuss mailing list