Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Created August 1, 2013 01:14
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mattconnolly/6127693 to your computer and use it in GitHub Desktop.
Save mattconnolly/6127693 to your computer and use it in GitHub Desktop.
Using zonecfg to fix missing DNS resolvers in a SmartOS zone.
# zonecfg -z <uuid>
zonecfg:uuid> add attr
zonecfg:uuid:attr> set name=resolvers
zonecfg:uuid:attr> set type=string
zonecfg:uuid:attr> set value=8.8.8.8,8.8.4.4
zonecfg:uuid:attr> end
zonecfg:uuid> verify
zonecfg:uuid> commit
zonecfg:uuid> exit
# vmadm reboot <uuid>
Copy link

ghost commented Sep 9, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment