Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73
Rep:
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.....
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73
Original Poster
Rep:
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
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
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.
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73
Original Poster
Rep:
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 07:02 PM.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.