OK, I did the steps over and still I can’t get anything to resolve. I’m thinking I have an IP address or two in the wrong place and am just not seeing it right now.
I’m pretty sure all the pieces are in place but I’m tired of looking at it so was hoping someone could take a look and point me in the right direction. I’ll post whatever config files would help or all of them if that would be helpful, at least the relevant parts. I’ll start with the one on ns1.
Here are my Droplets
- Marmot
- IPv4: 104.131.131.228
- Prvt: 10.134.12.131
- ns1
- IPv4: 45.55.8.33
- Prvt: 10.134.27.140
- ns2
- IPv4: 45.55.8.46
- Prvt: 10.134.28.123
Here’s my named.conf
acl "trusted" {
10.134.27.140; # ns1 - can be set to localhost
10.134.28.123; # ns2
45.55.8.33; # host1
45.55.8.46; # host2
};
options {
listen-on port 53 { 127.0.0.1; 10.134.27.140; };
# listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { trusted; };
allow-transfer { 10.134.28.123; };
Here’s my named.conf.local
zone "neilanuskiewicz.com" {
type master;
file "/etc/named/zones/db.neilanuskiewicz.com"; # zone file path
};
zone "134.10.in-addr.arpa" {
type master;
file "/etc/named/zones/db.10.134"; # 10.134.0.0/16 subnet
};
Here’s my db.neilanuskiewicz.com
@ IN SOA ns1.neilanuskiewicz.com. admin.neilanuskiewicz.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers - NS records
IN NS ns1.neilanuskiewicz.com.
IN NS ns2.neilanuskiewicz.com.
; name servers - A records
ns1.neilanuskiewicz.com. IN A 45.55.8.33
ns2.neilanuskiewicz.com. IN A 45.55.8.46
; 10.134.0.0/16 - A records
host1.neilanuskiewicz.com. IN A 10.134.27.140
host2.neilanuskiewicz.com. IN A 10.134.28.123
Here’s my db.10.134
IN SOA neilanuskiewicz.com. admin.neilanuskiewicz.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers
IN NS ns1.neilanuskiewicz.com.
IN NS ns2.neilanuskiewicz.com.
; PTR Records
33.8 IN PTR ns1.neilanuskiewicz.com. ; 45.55.8.33
46.8 IN PTR ns2.neilanuskiewicz.com. ; 45.55.8.46
140.27 IN PTR host1.neilanuskiewicz.com. ; 10.134.27.140
123.28 IN PTR host2.neilanuskiewicz.com. ; 10.134.28.123
What tutorial is causing this confusion? You can absolutely run authoritative bind nameservers on either CentOS 6 or CentOS 7.
I think I’ve done all the steps but I’m not finding it resolving yet. It could be a propagation error or maybe I messed up somewhere. Any suggestions on best way to trouble shoot? There are no error messages just nothing resolving. I’ll try again in maybe an hour.
As a separate matter,
dig
gives me a command not found error.. Maybe it’s not in a my path. I can use it from my home machine. Dig is a standard tool that comes with centos or no?