LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   dns issue pls help (https://www.linuxquestions.org/questions/linux-server-73/dns-issue-pls-help-803188/)

saptu 04-20-2010 10:29 PM

dns issue pls help
 
getting error in dns confiuration


geting error


[root@annapurna ~]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone gsy.com/IN: loaded serial 42
dns_rdata_fromtext: reverse:9: near 'annapurna.gsy.com..': empty label
zone 0.168.192.in-addr.arpa/IN: loading master file reverse: empty label
localhost_resolver/0.168.192.in-addr.arpa/IN: empty label
[FAILED]


#[root@annapurna ~]# dig -x 101.0.168.192

; <<>> DiG 9.3.4-P1 <<>> -x 101.0.168.192
;; global options: printcmd
;; connection timed out; no servers could be reached



[root@annapurna ~]#dig annapurnna

; <<>> DiG 9.3.4-P1 <<>> annapurnna
;; global options: printcmd
;; connection timed out; no servers could be reached



The following is my confiuration files

**************************************************************************************************** **
#cat /etc/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; 192.168.0.101; };
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";

// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;

allow-query { 192.168.0.0/24; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; 192.168.0.0/24; };
match-destinations { localhost; 192.168.0.0/24; };
recursion yes;
"/etc/named.conf" 40L, 1248C
**************************************************************************************************** ********************************

# cat /etc/named.rfc1912.zones

// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone "gsy.com" IN {
type master;
file "forward";
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "reverse";
};


**************************************************************************************************** *********************************

[root@annapurna ~]# cat /var/named/chroot/var/named/forward
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS annapurna.gsy.com.
annapurna.gsy.com. IN A 192.168.0.101
station1 IN A 192.168.0.102
**************************************************************************************************** ***************************
[root@annapurna ~]# cat /var/named/chroot/var/named/reverse
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS annapurna.gsy.com.
101 IN PTR annapurna.gsy.com..
102 IN PTR station1.gsy.com.
***************************************************************************

bathory 04-21-2010 12:08 AM

Hi,

Quote:

101 IN PTR annapurna.gsy.com..
You have 2 trailing dots as you can see also from the error you get.

Regards

shravankumar.bbc 04-21-2010 12:43 AM

first change the group ownership of the files named.conf ,forward and reverse lookup zone files to named.

In the rfc1912.zones file put a dot at the end of the domain name.

in the forward file IN SOA gsy.com.

In the reverse file IN SOA gsy.com. root.gsy.com. (

Try this it will works

chrism01 04-21-2010 01:25 AM

Also, missing closing bracket
Code:

view localhost_resolver {
match-clients { localhost; 192.168.0.0/24; };
match-destinations { localhost; 192.168.0.0/24; };
recursion yes;



All times are GMT -5. The time now is 04:36 PM.