LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-20-2010, 10:29 PM   #1
saptu
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 1
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.
***************************************************************************
 
Old 04-21-2010, 12:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
Hi,

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

Regards
 
Old 04-21-2010, 12:43 AM   #3
shravankumar.bbc
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
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
 
Old 04-21-2010, 01:25 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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;
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help i can't get an ANSWER from DNS elopee Linux - Networking 1 09-18-2005 04:39 AM
Bind with Microsoft DNS-doubt pls help!! mlu Linux - Networking 4 09-05-2005 09:05 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
Webserver Redundency (DNS Gurus Pls) R4z0r Linux - Networking 1 09-20-2003 04:18 PM
DNS problem (Pls HELP, Urgent) kcwoo Linux - General 1 03-27-2002 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration