Setup the zone file for the server
In this example we will use 10.10.10.10 and 10.10.10.11 for our IP addresses, that way if someone copies this example into a real DNS server, we won't break things. Use the one that is assigned to your linode.
Edit /etc/bind/db.example.com
Code:
$TTL 86400
$ORIGIN example.com.
@ IN SOA ns1.example.com. dns.example.com (
2007123101
2H
15M
1W
1D )
IN NS ns1.example.com.
IN NS ns2.example.com.
IN A 10.10.10.10
IN MX 10 server.example.com.
server.example.com. IN TXT "v=spf1 a -all"
ns1 IN A 10.10.10.10
ns2 IN A 10.10.10.11
server IN A 10.10.10.10
www IN A 10.10.10.10
mail IN CNAME example.com.
ftp IN CNAME example.com.
example.com. IN TXT "v=spf1 a mx ~all"
Setup the zone file for any hosted domains
The zone file for hosted domains will all be similar in this case, with only the domain names changing. Girlie's zone file is below. Littleone's will be the same with example.org substituted for example.net
Code:
$TTL 86400
$ORIGIN example.net.
@ IN SOA ns1.example.com. dns.example.com (
2007123101
2H
15M
1W
1D )
IN NS ns1.example.com.
IN NS ns2.example.com.
IN A 10.10.10.10
IN MX 10 server.example.com.
www IN A 10.10.10.10
mail IN CNAME example.net.
ftp IN CNAME example.net.