Created
May 6, 2017 01:15
-
-
Save jonaharagon/3cce60d3a8f481c84dc65561e6201504 to your computer and use it in GitHub Desktop.
OpenNIC User Data Configuration for DigitalOcean (Ubuntu 16.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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