Skip to content

Instantly share code, notes, and snippets.

@nde1
Forked from mattconnolly/gist:6127693
Created April 19, 2020 01:39
Show Gist options
  • Save nde1/565854c5d317e6cc571362a226fe8526 to your computer and use it in GitHub Desktop.
Save nde1/565854c5d317e6cc571362a226fe8526 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment