I have been trying to make bind
work on Fedora 21, and haven't succeeded doing it.
I read a few tutorials which basically instructed me to create a zone for my domain and an inverse mapper, then found a tool called system-config-bind
from Red Hat, which generated the following files
named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
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 { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "STATIC_IP.IN-ADDR.ARPA." IN {
type master;
file "STATIC_IP.db";
};
zone "transportelasnieves.com.ve." IN {
type master;
file "transportelasnieves.com.ve.db";
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
transportelasnieves.com.ve.db
$TTL 1D
@ 1D SOA @ root.transportelasnieves.com.ve. ( 2
3H
1H
1W
1D )
IN 1D A STATIC_IP.161
NS @
STATIC_IP.db
$TTL 1H
@ SOA transportelasnieves.com.ve. root.transportelasnieves.com.ve. ( 2
3H
1H
1W
1H )
NS transportelasnieves.com.ve.
161 PTR transportelasnieves.com.ve.
but it's still not working.
I know that because I can't ping to the domain and intoDNS
also gives me these errors
- Mismatched NS records
DNS servers responded
ERROR: One or more of your nameservers did not respond: The ones that did not respond are: STATIC_IP.161
Multiple Nameservers
- Missing nameservers reported by your nameservers
- SOA record (No valid SOA record).
and some others.
I am sure the port 53 is accessible from outside, because I can telnet
to it if I give the server's IP, i.e STATIC_IP.161