LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-28-2011, 02:52 AM   #1
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Rep: Reputation: Disabled
DNS server issue in RHEL5


when i trying gig www.google.com it gives this reply ...
[root@rhel5 ~]# dig www.google.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> www.google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19433
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 604800 IN CNAME www.l.google.com.
www.l.google.com. 300 IN A 74.125.236.146
www.l.google.com. 300 IN A 74.125.236.147
www.l.google.com. 300 IN A 74.125.236.148
www.l.google.com. 300 IN A 74.125.236.144
www.l.google.com. 300 IN A 74.125.236.145

;; AUTHORITY SECTION:
google.com. 172800 IN NS ns2.google.com.
google.com. 172800 IN NS ns3.google.com.
google.com. 172800 IN NS ns4.google.com.
google.com. 172800 IN NS ns1.google.com.

;; Query time: 927 msec
;; SERVER: 192.15.1.238#53(192.15.1.238)
;; WHEN: Wed Dec 28 19:43:07 2011
;; MSG SIZE rcvd: 204


and when i tri to do same for localhost it gives...
[root@rhel5 ~]# dig rhel5.sunny.internal

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> rhel5.sunny.internal
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 12566
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;rhel5.sunny.internal. IN A

;; AUTHORITY SECTION:
. 10473 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011122800 1800 900 604800 86400

;; Query time: 44 msec
;; SERVER: 192.15.1.238#53(192.15.1.238)
;; WHEN: Wed Dec 28 19:49:06 2011
;; MSG SIZE rcvd: 113


my question is is this the propour installation?????

my zone db file is ...
$TTL 600
@ IN SOA rhel5.sunny.internal. root.sunny.internal. (
2011122801 ; serial (d. ad$
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS rhel5.sunny.internal.
; IN MX 10 mail.sunny.internal.

rhel5 IN A 192.15.1.238




kindely reply meeee............
 
Old 12-28-2011, 03:14 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Firstly, PLEASE use code tags, notice the difference in readability between your post and mine? That is why... 'nuff said.

Quote:
Originally Posted by imsunnyshah View Post
Code:
;; ANSWER SECTION:
www.google.com.         604800  IN      CNAME   www.l.google.com.
www.l.google.com.       300     IN      A       74.125.236.146
www.l.google.com.       300     IN      A       74.125.236.147
www.l.google.com.       300     IN      A       74.125.236.148
www.l.google.com.       300     IN      A       74.125.236.144
www.l.google.com.       300     IN      A       74.125.236.145
This is the result you are looking for. The ANSWER section, which is missing from your "localhost" results.
Quote:
Code:
and when i tri to do same for localhost it gives...
[root@rhel5 ~]# dig rhel5.sunny.internal
This is will use the nameserver set in /etc/resolv.conf

To test if the dns will resolve on localhost, you need to specify it when using dig. ie:
Code:
$ dig @localhost rhel.sunny.internal
Quote:
Code:
;; QUESTION SECTION:
;rhel5.sunny.internal.          IN      A

;; AUTHORITY SECTION:
.                       10473   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2011122800 1800 900 604800 86400
my question is is this the propour installation?????
No, the result is missing the ANSWER section.

I would suggest checking /var/log/messages, for errors when you start named, and also starting named from the commandline.

I would also suggest you learn about the following tools, they can be greatly beneficial in diagnosing problems with configs, and zones.
-> named-bootconf
-> named-checkconf
-> named-checkzone

I am not an expert on BIND, i tend to take my working zone file, and modify it to suit a new situation. But a significant difference that i notice between my config and yours, is that i have an additional A record between my NS and MX records. But, there is every probability that my config is wrong, but works anyway.
This is the relevant part of my zone file..
Code:
        IN      NS      dns1.fukawi1.local.
        IN      A       10.20.1.1

        IN      MX      10      mail.fukawi1.local.
 
Old 12-28-2011, 09:47 PM   #3
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
i dont understand what u tring to say
 
Old 12-28-2011, 10:43 PM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
What don't you understand?
 
Old 12-28-2011, 10:45 PM   #5
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
what salution u sugest
 
Old 12-28-2011, 10:53 PM   #6
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Quote:
No, the result is missing the ANSWER section.

I would suggest checking /var/log/messages, for errors when you start named, and also starting named from the commandline.

I would also suggest you learn about the following tools, they can be greatly beneficial in diagnosing problems with configs, and zones.
-> named-bootconf
-> named-checkconf
-> named-checkzone
What don't you understand about that...
 
Old 12-29-2011, 02:46 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by imsunnyshah View Post
Code:
my zone db file is ...
$TTL    600
@               IN SOA  rhel5.sunny.internal.       root.sunny.internal. (
                                        2011122801      ; serial (d. ad$
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           rhel5.sunny.internal.
;               IN MX           10 mail.sunny.internal.
               IN MX           10 mail.sunny.internal. <----should be like this
rhel5           IN A            192.15.1.238
check your MX entry and remove the ;

also change the serial key when you make any changes to your DNS zone file and restart the service

try this and post the output
Code:
#nslookup
>rhel5.sunny.internal.
If this also does not works post your
Code:
named.conf
file using code tags
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] DNS server issue in RHEL5 imsunnyshah Linux - Server 1 12-20-2011 11:14 PM
error in dns server on rhel5 imsunnyshah Linux - Newbie 1 12-16-2011 06:19 AM
how to configure the dns server in rhel5? priyank123 Linux - Server 2 10-02-2008 10:35 AM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
DNS issue - DNS works perfect on server but not on any other computer jtneal Linux - Networking 3 03-15-2008 03:30 PM

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

All times are GMT -5. The time now is 09:03 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