Hi
i had configured dns in ubuntu machine.But it dig sample.etl.com as well as ipaddress but dns does int resolving off .
Quote:
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
zone example.com/IN: not loaded due to errors.
|
Generated by NetworkManager
nameserver 202.71.xx.67
nameserver 202.71.xx.67
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ cat /etc/bind.192
cat: /etc/bind.192: No such file or directory
root@sample:~$ cat /etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
5 IN PTR sample.example.com.
root@sample:~$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ clear
root@sample:~$ cat /etc/bind/
cat: /etc/bind/: Is a directory
root@sample:~$ cd /etc/bind/
root@sample:/etc/bind$ ls
bind.keys db.192 db.root named.conf.options
db.0 db.empty named.conf named.conf.options.bak
db.127 db.example.com named.conf.default-zones rndc.key
db.255 db.local named.conf.local zones.rfc1918
root@sample:/etc/bind$ cat db.example.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
@ IN A 127.0.0.1
@ IN AAAA ::1
sample IN A 192.168.1.5
root@sample:/etc/bind$ cat named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "example.com" {
type master;
file "/etc/bind/db.example.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};
root@sample:/etc/bind$ cat db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
235 IN PTR sample.example.com.
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has Generated by NetworkManager
nameserver 202.71.xx.67
nameserver 202.71.xx.67
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ cat /etc/bind.192
cat: /etc/bind.192: No such file or directory
Quote:
root@sample:~$ cat /etc/bind/db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
5 IN PTR sample.example.com.
|
root@sample:~$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
root@sample:~$ named-checkzone example.com /etc/bind/db.192
zone example.com/IN: NS 'sample.example.com' has no address records (A or AAAA)
zone example.com/IN: not loaded due to errors.
root@sample:~$ clear
root@sample:~$ cat /etc/bind/
cat: /etc/bind/: Is a directory
root@sample:~$ cd /etc/bind/
root@sample:/etc/bind$ ls
bind.keys db.192 db.root named.conf.options
db.0 db.empty named.conf named.conf.options.bak
db.127 db.example.com named.conf.default-zones rndc.key
db.255 db.local named.conf.local zones.rfc1918
root@sample:/etc/bind$ cat db.example.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
@ IN A 127.0.0.1
@ IN AAAA ::1
sample IN A 192.168.1.5
root@sample:/etc/bind$ cat named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "example.com" {
type master;
file "/etc/bind/db.example.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};
root@sample:/etc/bind$ cat db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA sample.example.com. root.sample.example.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS sample.example.com.
235 IN PTR sample.example.com.
root@sample:/etc/bind$ named-checkzone example.com /etc/bind/db.example.com
zone example.com/IN: loaded serial 2
OK
ecare@ecare:~$ dig sample.example.com
; <<>> DiG 9.7.0-P1 <<>> sample.example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62202
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;sample.example.com. IN A
;; AUTHORITY SECTION:
etl.com. 9771 IN SOA ns.domainnetwork.se. hostmaster.melbourneitcbs.com. 2011092801 21600 3600 2419200 86400
;; Query time: 91 msec
;; SERVER: 202.71.xx.67#53(202.71.xx.67)
;; WHEN: Wed Feb 29 15:16:34 2012
;; MSG SIZE rcvd: 112
Quote:
ecare@ecare:~$ dig 192.168.1.5
; <<>> DiG 9.7.0-P1 <<>> 192.168.1.5
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 58326
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;192.168.1.5. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2012022900 1800 900 604800 86400
;; Query time: 82 msec
;; SERVER: 202.71.xx.67#53(202.71.xx.67)
;; WHEN: Wed Feb 29 15:16:45 2012
;; MSG SIZE rcvd: 105
|