On Tue, May 6, 2014 at 2:59 AM, Nahum Shalman < [email protected]> wrote:
> On 05/04/2014 12:23 PM, Robert Mustacchi wrote: > >> The dhcp option in vmadm today does not, to my limited knowledge, ask >> dhcp for resolvers. Though someone should look at snoop output for dhcp >> and verify what it is and what it isn't sending. >> > > It's even easier than using snoop. The dhcp client still knows what you > received. > see dhcpinfo(1) ( online at http://illumos.org/man/1/dhcpinfo ) > The info is definitely there: [root@test01 ~]# dhcpinfo 6 192.168.10.1 > Basically you'll want to set up something that at zone boot time does > something sort of like: > echo -e "domain $(/sbin/dhcpinfo 15)\n$(/sbin/dhcpinfo 6| sed > 's/^/nameserver /')" > /etc/resolv.conf Is there a /etc/rc.local equivalent for smartos? Or ideally is there a ifup/ifdown script that runs on a network interface change. Doing this update purely on reboot is potentially only partially useful. That said servers are meant to be some what "more" static. However if you have a hundred nodes, and want to change a DNS services, being forced to reboot all the nodes may be a pain. > While you can use the resolvers and maintain_resolvers properties that >> you mention, that's obviously not the best way. Looking into this is >> pretty low on our priority list because we actually never use dhcp at >> Joyent. If folks could dig into this and figure out whether or not we're >> actually requesting DNS servers or not or if it's being clobbered for >> some reason, than we can go from there. >> > > I theory one could imagine a vmadm field that says to use the resolvers > from the dhcp server > that would alter the zone behavior, but as it's low on Joyent's > priorities, you might have to write it yourself > or find someone in the community to write it and get it upstream. > It's not a super urgent feature. It's good to know that it's effectively not working at the moment. Saves me time trying to out some configuration knob that doesn't exist. ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
