-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed 30 Apr 2014 01:30:01 AM UTC, Coy Hile wrote: > > On Apr 29, 2014, at 8:41 PM, Alain O'Dea via smartos-discuss > <[email protected]> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On 14-04-27 09:39 PM, G B wrote: >>> Before setting resolvers in my .json file I would create my >>> /etc/resolv.conf and after rebooting my zone the resolv.conf was >>> gone, hence it was a reasonable assumption that /etc gets >>> recreated. >> >> If you set resolvers and dns_domain in your JSON payload they'll get >> persisted correctly. Here's an example from my home network: >> https://github.com/AlainODea/home_network/blob/master/machines/ns1.json#L6-10 >> >> They can also be tweaked using zonecfg after zone creation: >> https://gist.github.com/mattconnolly/6127693 >> >> The dns_domain attribute can also be set from within attr scope: >> zoncfg:uuid:attr> set dns_domain=alainodea.local >> > > Is there any provision currently to set search domains or other resolve.conf > options? > > -c
It presently only supports a single search entry for dns_domain (opportunity to contribute): https://github.com/joyent/smartos-live/blob/13099d0badad63be1e932b0c6260888fb6963837/overlay/generic/lib/svc/method/mdata-fetch#L200-204 https://github.com/joyent/smartos-live/blob/13099d0badad63be1e932b0c6260888fb6963837/overlay/generic/lib/svc/method/mdata-fetch#L214 /lib/svc/method/mdata-fetch is where all of the /etc/resolv.conf generation happens in a zone: https://github.com/joyent/smartos-live/blob/13099d0badad63be1e932b0c6260888fb6963837/overlay/generic/lib/svc/method/mdata-fetch#L181-231 It is run on the first reboot as marked by the presence of /tmp/.FIRST_REBOOT_NOT_YET_COMPLETE (svccfg export svc:smartdc/mdata): https://github.com/joyent/smartos-live/blob/d8032fd2867bfcdab3518e936bba07751acf5b61/overlay/generic/lib/svc/manifest/system/mdata.xml#L14 Automatic management of /etc/resolv.conf can be disabled by setting maintain_resolvers to false in the JSON payload or via vmadm update uuid maintain_resolvers=false: https://github.com/joyent/smartos-live/blob/13099d0badad63be1e932b0c6260888fb6963837/overlay/generic/lib/svc/method/mdata-fetch#L184-196 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTYGz1AAoJEP0rIXJNjNSAQrgH/j/GBn6i4V68bFnaj9yL9DyN Yg4WrpOPsRXDFu6s6LyGMj2nPk/XIcRYnU2wO23kXzdN4tdVlBDEpl1pwKZPjbGp Gt80CILVJ7OpHaeMJZmAIpglCBkTB6u9cLEJPWc0tirA38thO8FzWaBpHgQmjpQ8 qRyoiD9Xjl+QfLkkT0SUAGaI8JcYavx5KzTpYPye/Oqm3+h1pGtU96i3js+xOATW +1iLwZDdXDH950Jo3ElS/HKN9Yw6yUSDY5Xq7SnjSlPJ7WNMTcx+2R/iQsNbd5CE Z4ccyYfkg1aqAa5n9hO7rxRtJaLKf7iE+F9IDmN+vQoAO7l7S4rb6p452V9ZU4g= =4KAZ -----END PGP SIGNATURE----- ------------------------------------------- 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
