I’ve had my domains for almost 20 years now, but they’ve always been hosted elsewhere.
So recently, I bought 2 VPS to run a self hosted setup. This domain has never been used - it’s my test domain… anyway that’s not the issue.
The issue I’m having is in creating DNS zone files in BIND9. BIND9 expects classful addressing. However, I only have an IPv4 and a IPv6 per VPS. The VPS has IP addresses with a /32 and a /128 subnet mask respectively.
The VPS I’m using are on an OpenVZ setup. Here’s what my ifconfig looks like, but I’ve redacted my IPs.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: ####:####:##::#:####/128 Scope:Global
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:145839 errors:0 dropped:0 overruns:0 frame:0
TX packets:130786 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36863866 (35.1 MiB) TX bytes:13206609 (12.5 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:###.###.###.### P-t-P:###.###.###.### Bcast:###.###.###.### Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
Anyway, I’m all confused about how to setup DNS zones, as I want to run my own DNS server. Yeah I’m aware of Amazon Route53, or having my VPS host or GoDaddy, or whoever do the DNS for me.
Specifically, I’m confused about the Reverse Zone settings. I’ve been googling, but can’t find an example of what I should do to make it work. I’ve seen some things for /25-/29 subnets, but I wasn’t sure how to extrapolate that to a /32 subnet.
Anyway, if anyone has some example zone files and conf files, or a link, or other info, I’d appreciate it.
Thanks,
-nb