Manoj Joseph wrote: > I do not use nis. But the problem is that "dns" is not listed in > /etc/nsswitch.conf.
There you go, that explains it. > When I boot without enabling pcn0 (on vmware) and then enable it after > boot, this is what I see: > > -bash-3.2# cat /etc/nsswitch.conf | egrep "^hosts|^ipnodes" > hosts: files > ipnodes: files > ... > 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. > > Adding "dns" manually to /etc/nsswitch.conf fixes the lookup issue. There's no reason to not have dns in there, even if you don't have network connectivity, so that seems fine. -Seb _______________________________________________ networking-discuss mailing list [email protected]
