View Single Post
  #19  
Old 24th November 2012, 08:01
JP_linux JP_linux is offline
Junior Member
 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy NXDOMAIN problem,

Good morning,

I don't understand where and why I encounterd an error if I follow some instructions. In the next rounds I will be posted all settup, maybe somebody can help me. First of all I want to specify that I installed bind9 on virtualbox under platform of linux CentOS 6.3. The base platform where is installed virtual machine is linux Ubuntu. So:

> vi /etc/named.conf
options {
listen-on port 53 { 127.0.0.1; };
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 { localhost; };
query-source address * port 53;
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};
zone "my_site.com" {
type master;
file "my_site.com.fwd";
};
zone "2.0.10.in-addr.arpa" {
type master;
file "my_site.com.rev";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

>vi my_site.com.fwd

$ORIGIN my_site.com.

$TTL 3D

@ SOA serverCAE. root.my_site.com. (12 4h 1h 1w 1h)

@ IN NS serverCAE.

serverCAE. IN A 10.0.2.15

www IN A 10.0.2.15

>vi my_site.com.rev

$ORIGIN 2.0.10.in-addr.arpa.

$TTL 3D

@ SOA serverCAE. root.my_site.com. (12 4h 1h 1w 1h)

@ IN NS serverCAE.

211 IN PTR serverCAE.

> service named restart
OK
OK

>cat /etc/resolve.conf

nameserver 10.0.2.15

> nslookup www.my_site.com

Server: 10.0.2.2
Address: 10.0.2.2#53

** server can't find www.my_site.com: SERVFAIL

> nslookup 10.0.2.15

Server: 10.0.2.2
Address: 10.0.2.2#53

** server can't find 15.2.0.10.in-addr.arpa.: NXDOMAIN

> dig @www.my_site.com
dig: couldn't get address for 'www.my_site.com': not found

> dig @10.0.2.15

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.5 <<>> @10.0.2.15
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

Thats all.
Somebody can help me with some ideea or sugestion about manner in which I can made functional bind9? Any sugestion, ideea or tutorial which can help me is blessing.

Thank you in advance for support.
Reply With Quote