Manoj Joseph wrote: > Sebastien Roy wrote: > >>> So, that begs the question, why does "ifconfig pcn0 dhcp start" not add >>> dns to nsswitch.conf? Is this a but or is it working as designed? >> That's as designed. The ifconfig command simply configures IP >> interfaces. It doesn't configure naming and other high-level services. > > When the NIC is enabled on boot, this is what I see. > > -bash-3.2# cat /etc/nsswitch.conf | egrep "^hosts|^ipnodes" > hosts: files dns # Added by DHCP > ipnodes: files dns # Added by DHCP > > The entries, per the comment, were added by "DHCP" (during boot). Why > doesn't it do the same, when I start dhcp for an interface?
That's done by the svc:/network/service:default SMF service during boot. That service detects whether or not a network interface was configured using DHCP, and then uses the DHCP parameters received from the server to configure things like /etc/nsswitch.conf (including adding those "Added by DHCP" strings). -Seb _______________________________________________ networking-discuss mailing list [email protected]
