Skip to content

Instantly share code, notes, and snippets.

@yudai
Created February 13, 2013 11:38
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 yudai/4944034 to your computer and use it in GitHub Desktop.
Save yudai/4944034 to your computer and use it in GitHub Desktop.
Set up script for self-hosting vcap.me domain
#!/bin/sh
cat <EOF >> /etc/bind/named.conf.local
zone "vcap.me" IN {
type master; file "vcap.me.zone"; allow-update { none; };
};
EOF
cat <EOF > /etc/bind/db/vcap.me.zone
$TTL 86400@ IN SOA localhost root (
1 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns
* IN A <IP_ADDRESS_HERE>
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment