LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-03-2005, 10:17 AM   #1
niranjan_mr
Member
 
Registered: Dec 2004
Posts: 37

Rep: Reputation: 15
BIND 9 DNS server


Dear all



I have a local dns server for resolving my local web servers. and also i want the local dns server should able to act as dns server for resolving public domains also.


My problem is the named gets hanged, i mean it no longer resolves local domains . and it resolve only public domains . Please help me..

Below is my setup


I am having a system with Redhat Linux 9 installed and installed bind rpm

and my /etc/named.conf file looks like this

// generated by named-bootconf.pl

options {
directory "/var/named";
forwarders { to public dns server ip; };
forward only;

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "mydomain.ernet.in" IN {
type master;
file "mydomain.ernet.in.zone";
allow-query { any; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";


and it has only zone file for my local domains

mydomain.ernet.in.zone

the contents of zone file are

$TTL 86400
@ IN SOA mydomain.ernet.in. root.mydomain.ernet.in. (
2005080202 ; serial number
28800 ; refresh H=hours
14400 ; retry M = minutes
3600000 ; expiration W=weeks
0 )


@ IN NS mydomain.ernet.in.

@ IN A 172.16.7.11
www IN A 172.16.1.100
maths IN A 172.16.16.9




My problem is the named gets hanged, i mean it no longer resolves local domains . and it resolve only public domains . Please help me.. [B][B]My problem is the named gets hanged, i mean it no longer resolves local domains . and it resolve only public domains . Please help me..
 
Old 08-04-2005, 03:20 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Your DNS is configured to forward all requests to the forwarder IPs and never to use the local resolver.

If you want to use forwarding to resolve unknown domains, add

Code:
forwarders {};
to each zone in /etc/named.conf. This will disable forwarding for the zones you have hosted on your local DNS server. if you want to disable forwarding entirely, remove the forward and forwarders entries from the options {} clause.
 
Old 08-05-2005, 04:32 AM   #3
niranjan_mr
Member
 
Registered: Dec 2004
Posts: 37

Original Poster
Rep: Reputation: 15
bind 9 dns

hi cdhgee


thanks for your suggestion., i solved my problem . thanks again..


Regards
Niranjan
 
  


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
subdomain in the dns server bind c0nsur Linux - Software 4 03-29-2005 04:11 PM
BIND DNS Setup on new server brooky Linux - General 0 04-03-2004 09:54 AM
Bind Dns Server nexact Linux - Networking 2 02-21-2004 02:10 PM
help with bind dns server!!!! debloxie Linux - Networking 4 01-22-2004 07:15 AM
BIND and DNS Server Problems sicasal Linux - Software 8 07-31-2003 07:43 AM

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

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