DigitalOcean - moderntld/www.modernnic.net GitHub Wiki
The following data can be entered when creating your Droplet on DigitalOcean. Your Droplet should be configured with Ubuntu 16.04 x64 of any pricing size.
#cloud-config
package_update: true
packages:
- bind9
manage-resolv-conf: true
resolv_conf:
nameservers:
- '127.0.0.1'
- '138.197.25.214'
- '52.173.73.208'
write_files:
- path: /etc/bind/named.conf.modernnic
content: |
zone "." IN{
type slave;
file "/var/cache/bind/root.zone";
masters { 45.55.112.199; 191.237.46.141; };
};
zone "modern.nic" IN{
type slave;
file "/var/cache/bind/modern.nic.zone";
masters { 13.66.220.236; 52.175.202.64; };
};
zone "o" IN{
type slave;
file "/var/cache/bind/o.zone";
masters { 13.66.220.236; 52.175.202.64; };
};
runcmd:
- sed -i -e "s/dnssec-validation auto;/dnssec-validation auto; recursion yes; allow-query { any; };/" /etc/bind/named.conf.options
- echo "include \"/etc/bind/named.conf.modernnic\";" >> /etc/bind/named.conf
- sed -i -e 1,6d /etc/bind/named.conf.default-zones
- systemctl restart bind9
Simply check the User Data box when creating your droplet and paste the above information, like so:

Using this referral link will grant you $10 in free credit with DigitalOcean, enough for 2 months of operation, as well as support ModernNIC's infrastructure!