Hi ,
I am setting up an internal DNS server (bind-9.2.0-8) on RH linux 7.3.
My /etc/named.conf reads:
------------------------------------------------------------------------------------------------------
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
include "/etc/rndc.key";
;zone "xyz.abc.com" {
type master;
notify no;
file "/var/named/xyz.abc.com.hosts";
-----------------------------------------------------------------------------------------------------
And my /var/named/named.local reads:
-----------------------------------------------------------------------------------------------------
$TTL 86400
@ IN SOA ns.xyz.abc.com. hostmaster.xyz.abc.com. (
1 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
NS ns.xyz.abc.com.

1 PTR localhost.
----------------------------------------------------------------------------------------------------
Also my /var/named/xyz.abc.com.hosts looks :
====================================================
; Zone file for xyz.abc.com
; The full zone file

$TTL 3D

@ IN SOA ns.xyz.abc.com. hostmaster.xyz.abc.com. (
199802151
3600
3600
3600
3600 )
;
NS ns ; Inet Address of name server

MX 10 mailer ; Primary Mail Exchanger

;
localhost A 127.0.0.1
ns A 192.168.gh.ij
mail A 192.168.gh.ij
=====================================================

When I do "dig -x 127.0.0.1" , I get authoritative section also.
-----------------------------------------------------------------------------------------------------------
[root@mailer named]# dig -x 127.0.0.1

; <<>> DiG 9.2.0 <<>> -x 127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60448
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR

;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 86400 IN PTR localhost.

;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. 86400 IN NS ns.xyz.abc.com.

;; ADDITIONAL SECTION:
ns.xyz.abc.com. 259200 IN A 192.168.gh.ij

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jan 24 21:15:53 2003
;; MSG SIZE rcvd: 110
----------------------------------------------------------------------------------------------------------------
Whereas if I do "dig any xyz.abc.com" I do not get authoritative section.
----------------------------------------------------------------------------------------------------------------
; <<>> DiG 9.2.0 <<>> any xyz.abc.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9714
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;xyz.abc.com. IN ANY

;; ANSWER SECTION:
xyz.abc.com. 259200 IN SOA ns.xyz.abc.com. hostmaster.xyz.abc.com. 199802151 3600 3600 3600 3600
xyz.abc.com. 259200 IN NS ns.xyz.abc.com.
xyz.abc.com. 259200 IN MX 10 mailer.xyz.abc.com.

;; ADDITIONAL SECTION:
ns.xyz.abc.com. 259200 IN A 192.168.gh.ij

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jan 24 21:19:07 2003
;; MSG SIZE rcvd: 135
--------------------------------------------------------------------------------------------------------------------

What I want want to know is why in second option (dig any xyz.abc.com) I did not get authoritative answer.
Also , did you notice a semicolon before `zone "xyz.abc.com"` (in named.conf). If I remove that(;) bind is not starting at all with the following message in /var/log/messages: "/etc/named.conf:35: missing ';' before 'zone'". Any idea why is that?

Thanks.
Mahantesh.

PS: apologies for a quiet a big mail.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to