Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Installation: Local Caching Dns In Linux, Any Linux Gurus out there ???
miCRoSCoPiC^eaRt...
post Feb 1 2005, 08:44 PM
Post #1


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



Hi all,
BIND is already installed on my server (am using Fedora Core 2) - can anyone help me in setting up the DNS Zones and configuring the named.conf - preferrbaly the NON-GUI way ?? I'm more comfortable with the console and vi way. I've tried in uncountable ways and all it has given me are uncountable bad hair days... sad.gif
Thanks
Go to the top of the page
 
+Quote Post
mastercomputers
post Feb 2 2005, 11:46 AM
Post #2


PESTICIDAL MANIAC
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



QUOTE(microscopic^earthling @ Feb 2 2005, 09:44 AM)
Hi all,
      BIND is already installed on my server (am using Fedora Core 2) - can anyone help me in setting up the DNS Zones and configuring the named.conf - preferrbaly the NON-GUI way ?? I'm more comfortable with the console and vi way. I've tried in uncountable ways and all it has given me are uncountable bad hair days... sad.gif
Thanks
*



The named.conf file should already exist right? I don't think we alter this at all but I'll check in it later and see if I made any changes to this, I believe we create /etc/named.local although this file may already have existed too and we alter our /etc/resolv.conf file, I definitely know this file was always there.

Anyways here's a link that should help you and probably would correct myself too. http://www.stanford.edu/~riepel/dns/Caching.html

MC
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Feb 2 2005, 12:27 PM
Post #3


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



Ya - named.conf exists, so dose resolv.conf and the named.local too...
Let me tell you what I did step by step:
1. First ran rndc_config_gen to generate the rndc keys
2. included the generated key in the named.conf file and for say my own domain, xxx - created a zone in named.conf
zone "ns1.xxx" {
type master;
file "/var/named/ns1.xxx.db";
};

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

3. Modified the file /var/named/ns1.xxx.db to contain:
$TTL somevalue;
ns1.xxx. 14400 IN A myServerIP
localhost. ns1.xxx 14400 IN A 127.0.0.1

- umm.. after that I kind got lost and saved he file and tried to do nslookup/dig on my domain .... didn't quite work out. I'll go through the page you posted and let you know... It'll be quite helpful though, if you can give me a sample of your named.conf, resolv.conf and the zone file and your domain name - maybe I can go through the params and figure out what to do...
Thanks smile.gif

Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Feb 2 2005, 04:59 PM
Post #4


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



All right - problem solved. Don't bother any more. I figured it out today after a loooong session of tweaking around with the values. Maybe I'll chalk up a tutorial on it.
Thanks all the same...
smile.gif

P.S. - Ya - I went ahead and wrote up a tutorial on it - it's posted in the Howto's section now. Have fun.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Running Linux on slow computers(12)
  2. Now Linux is ease(9)
  3. Linux SuSE detec you all hareware(2)
  4. Linux - which distributiuon?(19)
  5. What's The Difference Between Linux And Unix?!?(18)
  6. SMF - Shout Box Mod Installation(50)
  7. What Language Is Linux Written In ?(15)
  8. What Made You Switch To Linux?(61)
  9. Web Hosting From Your Own Local Machine. (very Easy)(18)
  10. Phpbb - Installation Tutorial ( For Newbies Based On Astahost Cpane)l(5)
  11. Could Linux Become The Dominant Os?(14)
  12. Looking For Linux(34)
  13. How To Play Music And Movie In Linux? Which Is The Good One?.(6)
  14. How To Copy File & Folders From Linux To Windows?.(12)
  15. Linux For Beginners- Easy To Install(16)
  1. Linux Beginners - Tutorial On Editors In Linux.(3)
  2. C/c++ -gdb Linux Debug Tool(1)
  3. Choice Of Motherboard For Linux Virtualization(5)
  4. Why Linux?(23)
  5. Which Linux Version For Newbies?(14)
  6. [c/c++][linux] Linking With A -l Is Static Or Dynamic?(0)
  7. Internet Connection In Linux Through Mobile(4)
  8. Linux Partitioning Guide (new Users)(1)
  9. Linux Software Installation Help(2)
  10. I Want To Get Linux, Which One Is Best?(6)
  11. When And What Is Your First Linux Experience?(4)
  12. How To Include A File Using Absolute Paths Under A Secure Php Installation(6)
  13. Why Still Windows But Ubuntu Linux(4)


 



- Lo-Fi Version Time is now: 5th December 2008 - 12:42 AM