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

Philip Kime Philip at kime.org.uk
Wed Dec 20 17:18:24 UTC 2023


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 at openindiana.org> wrote:
> 
> 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
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 509 bytes
Desc: OpenPGP digital signature
URL: <http://openindiana.org/pipermail/openindiana-discuss/attachments/20231220/9d5c947d/attachment.bin>


More information about the openindiana-discuss mailing list