LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2008, 11:17 PM   #1
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Rep: Reputation: 15
problem in caching-only server


guys!!!!!!!!

i need to configure a dns server in my college and i was experimenting with cashing only server mode. the dig and nslookup utilities work fine with the redhat box on which bind is currently install bt the system on which centos is installed doesnot perform nslookup or did using the redhatbox as its dns server.... what can the problem be?

ip of redhat box 192.168.1.3 hostname is redhat1.myintranet.net

ip of centos box 192.168.1.4 hostname is centos.myintranet.net

these box even do not ping each other using the hostname but pinging with ips work fine..... please help.....
 
Old 10-01-2008, 01:09 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Show output from

cat /etc/resolv.conf
dig redhat1.myintranet.net

Do you have iptables enabled?
 
Old 10-01-2008, 04:21 AM   #3
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Original Poster
Rep: Reputation: 15
guys ! i am seriously screwed... actually the ips are assigned by dhcp.... i have checked out that these boxes although get their ips via dhcp but always get these same ips......and today when i booted the system the entry of nameserver 192.168.1.3 vanished from /etc/resolv.conf..... the named deamon is up and running but all the queries are being answered by the main dns server 192.168.1.1................the output of dig command is

[root@redhat1 named]# dig @192.168.1.3 redhat1.myintranet.net

; <<>> DiG 9.3.3rc2 <<>> @192.168.1.3 redhat1.myintranet.net
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7226
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;redhat1.myintranet.net. IN A

;; ANSWER SECTION:
redhat1.myintranet.net. 300 IN A 208.254.26.139

;; AUTHORITY SECTION:
myintranet.net. 65 IN NS ns.buydomains.com.
myintranet.net. 65 IN NS this-domain-for-sale.com.

;; ADDITIONAL SECTION:
ns.buydomains.com. 172564 IN A 208.254.3.177
this-domain-for-sale.com. 172564 IN A 128.121.3.72

;; Query time: 205 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Tue Sep 30 11:02:19 2008
;; MSG SIZE rcvd: 154

[root@redhat1 named]#

Theoutput is wrong as it is showing ip to be 208.254.3.177 but it is 192.168.1.3
i want that this redhatbox should act as the dns server of myintranet...so that i can run apache server on centos box

... what shall i do????
 
Old 10-01-2008, 12:44 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If the system is getting its IP inforamation via DHCP, you need to configure the DHCP server to provide YOUR DNS server's IP address.
 
Old 10-02-2008, 07:28 PM   #5
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Original Poster
Rep: Reputation: 15
already done.... bt still not working
 
Old 10-02-2008, 07:46 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If this is a caching-only name server, then the name server will query the DNS server authoritative for myintranet.net, which is:

Code:
$ dig myintranet.net soa    

; <<>> DiG 9.5.0-P2 <<>> myintranet.net soa
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49815
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;myintranet.net.                        IN      SOA

;; ANSWER SECTION:
myintranet.net.         2554    IN      SOA     ns.buydomains.com. hostmaster.myintranet.net. 1222979778 16384 2048 1048576 2560

;; AUTHORITY SECTION:
myintranet.net.         220     IN      NS      this-domain-for-sale.com.
myintranet.net.         220     IN      NS      ns.buydomains.com.

;; ADDITIONAL SECTION:
ns.buydomains.com.      126931  IN      A       208.254.3.177
this-domain-for-sale.com. 126931 IN     A       128.121.3.72
Your caching-only DNS server is not authoritative for the zone myintranet.com.

If the your DNS server does provide a split-DNS LAN-only view, then it is not a caching-only server.

Your said your CentOS system has no entry in /etc/resolv.conf. This file must contain a nameserver entry pointing to your DNS server's IP address. Without this, your DNS server is not queried.
 
Old 10-02-2008, 08:00 PM   #7
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Original Poster
Rep: Reputation: 15
i manually wrote an entry in /etc/resolv.conf on both system bt it didnt work.......
i hv also modofied the /etc/named.conf to take my redhatbox as a master dns server.... the entry for myintranet.net is in internal section..............

Last edited by author_unknown; 10-02-2008 at 08:02 PM.
 
Old 10-03-2008, 12:23 AM   #8
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You're in a non-winning position, by not allowing us, who understand how the system works, the ability to make our own diagnosis based on evidence, And if we take your word that you've performed everything correctly, you wouldn't be asking for help, right?! :-)

There is not much one can conclude from an "it doesn't work" statement, nor is there room for additional suggestions when responses are dismissive or uninvolved. You really have to help others help you. And you do this by showing the steps you've taken, configuration files, and actual results of tests.
 
Old 10-08-2008, 07:59 AM   #9
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Original Poster
Rep: Reputation: 15
thanx everyone for your help.. the dns server is working fine....
 
  


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
Caching Only name SErver shipon_97 Linux - Networking 1 02-27-2006 02:53 AM
Caching DNS server error (lame server resolving) Iggyboo Linux - Networking 1 02-24-2005 04:43 AM
Is there a problem in my caching only name server prabhatsoni Linux - Software 3 02-23-2005 03:43 AM
Caching FTP server dlublink SUSE / openSUSE 0 01-04-2005 01:10 PM
No IP and Caching DNS server fmertus Linux - Networking 2 06-27-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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