Skip to content

Instantly share code, notes, and snippets.

@risyasin
Created June 11, 2015 09:28
Show Gist options
  • Save risyasin/e9a88c2bd6e9bf45f161 to your computer and use it in GitHub Desktop.
Save risyasin/e9a88c2bd6e9bf45f161 to your computer and use it in GitHub Desktop.
sample domain-mail install
nano /etc/bind/named.conf.local
```
zone "evrima.net" {
type master;
file "/var/lib/bind/evrima.net.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
nano /var/lib/bind/evrima.net.hosts
```
$ttl 38400
@ IN SOA ns1.evrima.net. root.ns2.evrima.net. (
1410553514
10800
3600
604800
38400 )
evrima.net. IN NS ns1.evrima.net.
evrima.net. IN NS ns2.evrima.net.
ns1.evrima.net. IN A 37.139.27.185
ns2.evrima.net. IN A 37.139.27.185
evrima.net. IN A 37.139.27.185
www.evrima.net. IN A 37.139.27.185
evrima.net. IN MX 5 mail.evrima.net.
evrima.net. IN TXT "v=spf1 a mx a:evrima.net ip4:37.139.27.185 ?all"
asd.evrima.net. IN CNAME ec2-54-76-189-251.eu-west-1.compute.amazonaws.com.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment