Hi all,
I am a bit new in this territory, so this is probably an easy issue, but I want to get some knowledge in this area.
I have configured a VPS with Bind as an authoritative DNS server. I have configured one zone, vpsnu.nl, and if I check it on the local machine, I get the proper response with the IP address I configured.
However, once I try to do the same from my home computer, I get an error. This is what happens on the VPS:
Code:
> vpsnu.nl
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: vpsnu.nl
Address: 95.211.172.130
And this is what happens locally:
Code:
> server ns1.hjts.nl
Default server: ns1.hjts.nl
Address: 95.211.172.130#53
> vpsnu.nl
;; connection timed out; no servers could be reached
When I try to get the a record on mxtoolbox.com, the server reports: "Loop detected! We were referred back to '95.211.172.130'"
Now the IP for the domain and the IP for the nameserver are the same, but is that a problem? And if so, why?
This is my configuration, named.conf.options:
Code:
options {
directory "/var/cache/bind";
recursion no;
allow-transfer { none; };
listen-on { any; };
listen-on-v6 { any; };
allow-query { any; };
};
named.conf.local:
Code:
zone "vpsnu.nl" {
type master;
file "/etc/bind/zones/db.vpsnu.nl";
};
and /etc/bind/zones/db.vpsnu.nl:
Code:
;
; BIND data file for local loopback interface
;
$TTL 86400
@ IN SOA ns1.hjts.nl. my.email.com. (
2015022002 ; Serial
3600 ; Refresh
900 ; Retry
1209600 ; Expire
1800 ) ; Negative Cache TTL
; Name servers
IN NS ns1.hjts.nl. ; master
IN NS ns2.hjts.nl. ; slave
; A records
@ IN A 95.211.172.130
www IN A 95.211.172.130
If I'm doing something horribly wrong, please let me know, I really want to understand this.