Skip to content

Instantly share code, notes, and snippets.

@jonaharagon
Created May 6, 2017 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonaharagon/3cce60d3a8f481c84dc65561e6201504 to your computer and use it in GitHub Desktop.
Save jonaharagon/3cce60d3a8f481c84dc65561e6201504 to your computer and use it in GitHub Desktop.
OpenNIC User Data Configuration for DigitalOcean (Ubuntu 16.04)
#cloud-config
package_update: true
packages:
- bind9
manage-resolv-conf: true
resolv_conf:
nameservers:
- '127.0.0.1'
- '138.197.25.214'
- '185.121.177.177'
runcmd:
- wget -O /etc/bind/srvzone https://gist.githubusercontent.com/JonahAragon/e13995d17404b4d5f58df44ef3953c96/raw/
- chmod +x /etc/bind/srvzone
- /bin/bash /etc/bind/srvzone
- sed -i '$a include "/etc/bind/named.conf.opennic";' /etc/bind/named.conf
- systemctl restart bind9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment