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

Bill Sommerfeld sommerfeld at hamachi.org
Wed Dec 20 19:57:18 UTC 2023


Autoconfiguration of /etc/resolv.conf on illumos could really use some 
attention and modernization - besides the glitch you noticed, there is 
also currently no way to automatically use ipv6 nameserver addresses 
either from DHCPv6 or IPv6 stateless address autoconfig.

Funnelling the settings through SMF properties would absolutely make 
sense as any dual-stack config necessarily must merge config from 
multiple sources.

On 12/20/23 09:18, Philip Kime wrote:
> 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
> 
> 
> 
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the openindiana-discuss mailing list