LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2002, 06:55 PM   #1
unixkid
LQ Newbie
 
Registered: Feb 2002
Location: bothell,wa
Posts: 2

Rep: Reputation: 0
Wink bind9


Anyone familar with Bind9 on RH7.1? I need to create a cache & forwarding server for my dns zones. Can anyone help?
 
Old 02-28-2002, 08:47 PM   #2
diveguy
LQ Newbie
 
Registered: Feb 2002
Location: Near St Louis, MO
Posts: 18

Rep: Reputation: 0
Hi,

You need to load the following rpms: (version numbers may differ)

bind-utils.9.1.0-10
bind-9.1.0-10
bindconf-1.4.1
caching-nameserver-7.1-3

Another file called ypbind-1.7.6 should be automatically loaded when you load these packages. You can check to see if they are all there with "rpm -qa | grep -i bind" and then replace the word bind with cach.

You need to create two files...a forward zone and a reverse zone. Let's call your zone kid.com and the computer you are putting it on is called "billy". And you have another computer named "brian" and a webserver named "mike". And your network ip is 192.168.0.0. The forward zone file will be called kid.com.zone and it should be in the /var/named/ directory. This file could look like this:

$TTL 86400
@ IN SOA @ root.kid.com (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS billy. (don't add this note...notice
period after billy)

brian IN A 192.168.0.10
mike IN A 192.168.0.25



Save that file....Then you need a reverse file called
"0.168.192.in-addr.arpa.zone" located in the /var/named/ directory. That file will look like this:

$TTL 86400
@ IN SOA @ root.localhost (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS billy. (again notice the period after
@ IN PTR brian. all the names)
@ IN PTR mike.


Save this file.


Next there should be a file called "named.conf" in the /etc directory. If not just create it.

It should look like this:

##named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.

options {
directory "/var/named/";
};



zone "." {
type hint;
file "named.ca";
};


zone "0.168.192.in-addr-arpa" {
type master;
file "0.168.192.in-addr.arpa.zone";
};

zone "kid.com" {
type master;
file "kid.com.zone";
};



Save that file. Make sure you got all the semi-colons and squiggly parens.

Then at a command prompt type "service named start". To test that it is running ok immediately type "service named stop". They both should come out with an "OK". If they do then start the named service again.

From another machine...make sure your nic configuration is pointed to you dns machine. Then you should be able to ping "billy", "mike", or "brian" by name. If not check that you can ping them by ip to make sure you have a good connection.


Good luck.
 
Old 02-28-2002, 11:58 PM   #3
unixkid
LQ Newbie
 
Registered: Feb 2002
Location: bothell,wa
Posts: 2

Original Poster
Rep: Reputation: 0
Smile bind9 help

Great infomation. I have bind v9 running right now sorta like how you stated in your email. Part of my "lack of understanding" and fact I can't find good dcoumentation on how to set up cache & forwarding server. Let me detail this a bit, I have three primary dns servers:
server-A in California,server-B in Ohio & server-C in Florida

the new server is ns05 (forwarder & cache dns)

What I seem to have is issues which we think can be solved by setting up a chaching server based on dns domains. We would put a "forward entry" in all the primary servers to point to ns05 server. So when an entry comes in for server-A it can look at the cache or get forwarded to server-A for look up.

Does that make sense. I think it does but just cant seem to figure out how to do it :-( Everyone who is knows dns say's sure "you can do that" but no where can I figure out hwo the confiration would be...
 
Old 08-30-2002, 02:43 AM   #4
Graanco
Member
 
Registered: May 2001
Location: US somewhere
Distribution: Mandrake Redhat Debian Usually the last versions
Posts: 45

Rep: Reputation: 15
Works great except I am not able to ping xyz.com. Though I can ping www.xyz.com... weird

Benjamin
 
  


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
Bind9 help!! Fredstar Linux - Newbie 10 08-30-2005 09:47 PM
BIND9 Blues rjkfsm Debian 1 04-21-2005 11:53 AM
Looking for good HOW-TO for BIND9 LJ151 Linux - Software 2 07-14-2004 07:56 PM
Bind9 problem WiWa Linux - Networking 3 06-06-2004 05:27 AM
Bind9 tandre Linux - Software 1 04-08-2003 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:38 AM.

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