LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-23-2007, 09:34 PM   #31
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30

i see, i do hope you have a speedy recovery. but somehow I have this queer feeling you are enjoying the (free) time at home... hehe

I guess I will take the approach to storing my master DNS named.conf into my slave for now. What you guys mention about the other type of DNS server (caching etc) is still pretty much lost on me... but with time I can understand. Just that for now.. its the matter on hand.. which is resolved.

Oh speaking of which, another question:
Now with my sparkling new setup of the master/salve dns server, my slave is synching perfectly with my master. Good.

While you know my concern is IF the master goes down, but I did use the "file" option in slave, which saves the config to disk. So IF the master do go down, and my slave's config is still left as it is (to sync with the master), will it be smart enough to know master is gone, and just rely on the copy of zone file on the disk for dns queries for the time being, until the master comes back up?
Or are those zone files saved only valid for the "timeout" value?

And how do I toggle this timeout value: the "expire" value?

Thanks once again Jim, and chort!
 
Old 01-23-2007, 09:56 PM   #32
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Yeah, i"m stuck within the apartment though, so what could be fun really isn't too much. Your wishes for a speedy recovery is appreciated however!

Say your master does go down, and it will be down longer than the expiration time value. What you would do is put the master's named.conf in place of the slave's. The zone files will already be there, so you just point the named.conf at the same zones, and the different named.conf will give the same answers, but they will never timeout.

The zones are kept for the time-to-expire value, which is in seconds, but tends to be long. It is the second to last number at the end of the SOA line (with the serial number). Most of my servers have an expire time of 1209600, which is 2 weeks.

Check http://dnsreport.com for a readout of how your DNS is configured.

Peace,
JimBass
 
Old 01-23-2007, 10:00 PM   #33
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
ahh so implementing a master named.conf on the slave is all that matters... for the zone files to not expire? since the named.conf (from the master) states them as 'master'

Right?

thanks for the link.

ps: maybe you should get yourself a Nintendo Wii. Some form of "excercise" and fun for you indoor. Else... grab a pizza or read a book.
 
Old 01-23-2007, 10:09 PM   #34
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
There is no difference between a master and a slave zone data wise. There isn't some magic in the zone files themselves, it is the named.conf that designates if it should propagate the changes to the zones out to the other slaves or not. You could just use the named.conf from the master, because the info is EXACTLY the same. The only thing to check is to be certain that the file location is correct. I saw you were dropping the zones into "zone/domain.com", so be certain that the master is pointing to that exact same file.

I'm good with the exercise, I hobble around on my crutches. I'm fairly good about books, but they have me on heavy duty pain killers that make reading books very difficult. I also rarely stay awake longer than 3 or so hours before they knock me out for a bit. That's how I easily stayed awake until 4 am my time, I basically woke up and started responding, and stayed up till the painkiller kicked in and took me down.

Peace,
JimBass
 
Old 01-23-2007, 11:39 PM   #35
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by Swakoo
While you know my concern is IF the master goes down, but I did use the "file" option in slave, which saves the config to disk. So IF the master do go down, and my slave's config is still left as it is (to sync with the master), will it be smart enough to know master is gone, and just rely on the copy of zone file on the disk for dns queries for the time being, until the master comes back up?
Or are those zone files saved only valid for the "timeout" value?
It will keep serving requests for "expire" number of seconds since the last time it refreshed from the master.

Code:
smtps.net       IN SOA  ns1.smtps.net. hostmaster.smtps.net. (
                                2007010801 ; serial
                                28800      ; refresh (8 hours)
                                300        ; retry
                                2419200    ; expire
                                3600       ; minimum (1 hour)
                                )
My expiration is set to 2419200 seconds, which I believe is the maximum recommended value.

Last edited by chort; 01-23-2007 at 11:40 PM.
 
Old 02-17-2007, 09:56 PM   #36
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
I have a how-to on my website http://www.opensourcehowto.org for setting up DDNS(Dynamic Domain Name Server) and DHCP(Dynamic Host Configuration Protocol)

DDNS and DHCP
http://www.opensourcehowto.org/how-t...-and-dhcp.html
 
Old 02-21-2007, 03:19 AM   #37
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
you have a pretty cool site there
 
  


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
Prevent dhclient from setting default GW and DNS servers carlosruiz Linux - Networking 1 06-30-2006 01:05 AM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
DNS, ROOT servers, and setting up a small personal server urquanmaster Linux - Networking 4 03-10-2005 03:47 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
Setting DNS servers Boudewijn Linux - Networking 1 12-25-2003 02:56 PM

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

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