LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2008, 01:33 AM   #1
rohit_67066
Member
 
Registered: Jan 2007
Posts: 55

Rep: Reputation: 15
dns error


iam able to dig dns.com

#dig dns.com

; <<>> DiG 9.2.4 <<>> dns.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57977
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;dns.com. IN A

;; AUTHORITY SECTION:
dns.com. 3600 IN SOA dns.com. root.dns.com. 2004100801 3600 3600 3600 3600

;; Query time: 1 msec
;; SERVER: 192.168.7.222#53(192.168.7.222)
;; WHEN: Mon Jan 28 12:51:27 2008
;; MSG SIZE rcvd: 66

but what happen when use

#dig -x 192.168.7.222

; <<>> DiG 9.2.4 <<>> -x 192.168.7.222
;; global options: printcmd
;; connection timed out; no servers could be reached

this file is reverse.rev.
$TTL 86400
@ IN SOA dns.com. root (
2005111401
10800
3600
604800
86400 )
@ IN NS server.dns.com.
@ IN NS www ; server.dns.com.
222 IN PTR server.dns.com.
9 IN PTR bax1.dns.com.
10 IN PTR bax2.dns.com.
~
when i check with command
# named-checkzone dns.com /var/named/chroot/var/named/reverse.com
zone dns.com/IN: loaded serial 2005111401
OK
# vi /var/log/messages

Jan 28 12:51:22 server named: named startup succeeded
Jan 28 12:51:22 server named[3745]: loading configuration from '/etc/named.conf'
Jan 28 12:51:22 server named[3745]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 28 12:51:22 server named[3745]: listening on IPv4 interface eth0, 192.168.7.222#53
Jan 28 12:51:22 server named[3745]: command channel listening on 127.0.0.1#953
Jan 28 12:51:22 server named[3745]: zone 0.in-addr.arpa/IN: loaded serial 42
Jan 28 12:51:22 server named[3745]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Jan 28 12:51:22 server named[3745]: zone 255.in-addr.arpa/IN: loaded serial 42
Jan 28 12:51:22 server named[3745]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Jan 28 12:51:22 server named[3745]: zone dns.com/IN: loaded serial 2004100801
Jan 28 12:51:22 server named[3745]: zone 7.168.192.in-addr-arpa/IN: loaded serial 2005111401
Jan 28 12:51:22 server named[3745]: zone localdomain/IN: loaded serial 42
Jan 28 12:51:22 server named[3745]: zone localhost/IN: loaded serial 42
Jan 28 12:51:22 server named[3745]: running


can any help me to dig -x 192.168.7.222.

thanks
 
Old 01-28-2008, 02:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Quote:
iam able to dig dns.com
Yes, but you didn't get an answer (see the ANSWER: 0)
Quote:
but what happen when use

#dig -x 192.168.7.222

; <<>> DiG 9.2.4 <<>> -x 192.168.7.222
;; global options: printcmd
;; connection timed out; no servers could be reached
Quote:
$TTL 86400
@ IN SOA dns.com. root (
2005111401
10800
3600
604800
86400 )
@ IN NS server.dns.com.
@ IN NS www ; server.dns.com.
...
According to the SOA record of the above zonefile your dns is dns.com. But in the NS record you use server.dns.com. What is the correct one?

Quote:
when i check with command
# named-checkzone dns.com /var/named/chroot/var/named/reverse.com
zone dns.com/IN: loaded serial 2005111401
OK
This does not make sense. You check the dns.com zone using the reverse zonefile and you don't get errors. The correct should be:
Code:
named-checkzone 7.168.192.in-addr-arpa /var/named/chroot/var/named/reverse.com
I suggest you to review named.com and both the zonefiles for forward and reverse zones and post here any questions you may have.

Regards
 
Old 01-28-2008, 04:58 AM   #3
rohit_67066
Member
 
Registered: Jan 2007
Posts: 55

Original Poster
Rep: Reputation: 15
[root@server ~]#/etc/hosts
192.168.7.222 server.dns.com server
192.168.7.9 bax1.dns.com
192.168.7.10 bax2.dns.com

[root@server ~]#/etc/named.conf
};

zone "dns.com" IN {
type master;
notify no;
file "dns.com";
allow-query { any; };

};
zone "7.168.192.in-addr-arpa" IN {
type master;
notify no;
file "reverse.com";
allow-query { any; };

};
for the default named.conf i made these two changes for file.

[root@server ~]#vi /var/named/chroot/var/named/dns.com (after the changes)

$TTL 86400
@ IN SOA server.dns.com. root.dns.com (
2004100801 ;serial
3600 ;refresh seconds
3600 ;retry, seconds
3600 ; expiry, seconds
3600 ) ;minimum, seconds
IN NS server.dns.com.
server IN A 192.168.7.222
bax1 IN A 192.168.7.9
bax2 IN A 192.168.7.10

[root@server ~]#vi /var/named/chroot/var/named/reverse.com (after the changes)
$TTL 86400
@ IN SOA server.dns.com. root.dns.com (
2005111401
10800
3600
604800
86400 )
IN NS server.dns.com.
IN A 192.168.7.222
222 IN PTR server.dns.com.
9 IN PTR bax1.dns.com.
10 IN PTR bax2.dns.com.

[root@server ~]#vi /etc/resolv.conf
nameserver 192.168.7.222
search server.dns.com

[root@server ~]#vi /etc/nsswitch.conf

hosts: files dns

these only the my configuration file please correct it.

[root@server ~]#named-checkzone 7.168.192.in.addr.arpa. /var/named/chroot/var/named/reverse.com
zone 7.168.192.in.addr.arpa/IN: loaded serial 2005111401
OK
[root@server ~]# named-checkzone dns.com /var/named/chroot/var/named/dns.com
zone dns.com/IN: loaded serial 2004100801
OK

[root@server ~]#dig server.dns.com


global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48546
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;server.dns.com. IN A

;; AUTHORITY SECTION:
dns.com. 3600 IN SOA server.dns.com.dns.com. root.server.dns.com.dns.com. 2004100801 3600 3600 3600 3600

;; Query time: 2 msec
;; SERVER: 192.168.7.222#53(192.168.7.222)
;; WHEN: Mon Jan 28 16:36:06 2008
;; MSG SIZE rcvd: 88

# dig -x 192.168.7.222

; <<>> DiG 9.2.4 <<>> -x 192.168.7.222
;; global options: printcmd
;; connection timed out; no servers could be reached

[root@server ~]#service named restart
shuttdown and restart both are ok

thanks


help me out

Last edited by rohit_67066; 01-28-2008 at 05:03 AM.
 
Old 01-28-2008, 05:18 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
You should increase the serial in the zones files, so that named will read the changes
Quote:
dns.com (after the changes)

$TTL 86400
@ IN SOA server.dns.com. root.dns.com (
2004100801 ;serial
...
Quote:
reverse.com (after the changes)
$TTL 86400
@ IN SOA server.dns.com. root.dns.com (
2005111401
...
 
Old 01-29-2008, 01:56 AM   #5
rohit_67066
Member
 
Registered: Jan 2007
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
You should increase the serial in the zones files, so that named will read the changes
Thank you very much, now it was working after the changing the SERIAL.


and one more thing in named.conf

zone "7.168.192.in-addr-arpa" IN { (i was actually wrong)

zone "7.168.192.in-addr.arpa" IN { (after the change)

now it was able to dig -x 192.168.7.222.

and now my kickstart also working.

but one error i am getting

[root@server mail]# nslookup www.server.dns.com
Server: 192.168.7.222
Address: 192.168.7.222#53

** server can't find www.server.dns.com: NXDOMAIN

[root@server mail]# nslookup www.dns.com
Server: 192.168.7.222
Address: 192.168.7.222#53

** server can't find www.dns.com: NXDOMAIN
thank u very munch

raghu.
 
Old 01-29-2008, 03:35 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
According to the zonefile you've posted, there is no www.server.dns.com or www.dns.com, but just server.dns.com, that's why you cannot find them. You have to add them and of course increase the serial and reload the zone.

Regards
 
  


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
Anyone seen this DNS error before? Benso37 Linux - Newbie 5 10-08-2009 08:20 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Postfix and DNS error ? ganick Linux - Software 1 02-06-2007 11:26 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
DNS Error collins92 Linux - Networking 3 01-06-2006 09:06 AM

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

All times are GMT -5. The time now is 06:33 PM.

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