Strangely, after another reboot, /etc/resolv.conf now contains the domain and nameserver from DHCP ...
PK -- Dr Phil. Philip Kime BA (Hons) Msc (Dist) PhD > On 19 Dec 2023, at 21:09, Joshua M. Clulow via openindiana-discuss > <openindiana-discuss@openindiana.org> wrote: > > On Tue, 19 Dec 2023 at 11:14, Peter Tribble <peter.trib...@gmail.com> wrote: >> On Tue, Dec 19, 2023 at 6:33 PM Philip Kime <phi...@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 > > _______________________________________________ > openindiana-discuss mailing list > openindiana-discuss@openindiana.org > https://openindiana.org/mailman/listinfo/openindiana-discuss
signature.asc
Description: OpenPGP digital signature
_______________________________________________ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss