Here's my named.conf
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1; any; };
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";
forward only;
forwarders {
# the following IP addresses are my ISPs DNS Servers. These will be used for looking up
# hostnames that I don't locally manage, i.e. the REST OF THE INTERNET!
XXX; # my ISPs DNS Server #1
XXX; # my ISPs DNS Server #2
};
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
allow-query-cache { localhost; };
allow-recursion { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
zone "domain.com" {
type master;
file "domain.com.db";
};
};
include "/etc/rndc.key";
Here's my zone file:
; Zone file for domain.com
$TTL 14400
domain.com. 86400 IN SOA ns1.domain.com. user.email.com. (
2013032213 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 )
domain.com. 86400 IN NS ns1.domain.com.
domain.com. 86400 IN NS ns2.domain.com.
ns1.domain.com. 14400 IN A xxx
ns2.domain.com. 14400 IN A xxx
domain.com. 14400 IN A xxx
localhost 14400 IN A 127.0.0.1
www 14400 IN CNAME domain.com.
ftp 14400 IN A xxx
Bind is running. named-checkconf and named-checkzone return ok. The domain nameservers were also created at the domain registrar. The server also has the IPs in eth0:x...eth0:n. Any ideas what could I be doing wrong?
dig
including the address of server you're doingdig
against? And also above mentioned configuration is not serving this zone to internet, in case you're expect it to.caching-nameserver
package? This is strictly for local resolvers that aren't serving any zones. This is what the text at the top ofnamed.conf
is warning you about.