[OpenIndiana-discuss] DNS server and domain from DHCP?

Joshua M. Clulow josh at sysmgr.org
Tue Dec 19 20:09:20 UTC 2023


On Tue, 19 Dec 2023 at 11:14, Peter Tribble <peter.tribble at gmail.com> wrote:
> On Tue, Dec 19, 2023 at 6:33 PM Philip Kime <Philip at kime.org.uk> wrote:
> > I have used ipadm to configure an interface via DHCP, which works find.
> > However, the DHCP server also provide the DNS server and default domain
> > which was not being set on my server. I found that I had entries in
> > /etc/resolv.conf which seem to be set by SMF and are repopulated after
> > reboot. Two questions:
> >
> > * Where can I find the dns server and domain settings in SMF? I tried
> > looking in dns/client but I can't see config/nameserver property in there.
> >
>
> I wonder if this is nwam. It can also save and restore network settings,
> apparently.
> Some details are embedded in /lib/svc/method/net-loc and
> /lib/svc/method/net-nwam,
> but I'm not sure if there's much in the way of accurate documentation.
>
> (But I would start with:
> /usr/sbin/nwamcfg list
> /usr/sbin/nwamcfg "select loc Automatic ; get -V dns-nameservice-configsrc"
> and investigate from there.)

It would be good to know if you're using nwam or the classic
ipadm-style configuration, first.  What output do you get from:

    svcs network/physical


Cheers.

-- 
Joshua M. Clulow
http://blog.sysmgr.org



More information about the openindiana-discuss mailing list