LinuxQuestions.org
Visit Jeremy's Blog.
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 04-19-2010, 06:04 AM   #1
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Rep: Reputation: 30
Dnsmasq TTL question


Hi,

Is it possible to setup DNSMASQ so that it respects the TTL it is given by the upstream DNS server, but it sends out a fixed TTL to its clients?

My DNSMASQ server is running on the same local network as all its clients. I want all my clients to be served with a 5 minute TTL, regardless of what the actual domain uses. So for instance if google.com has a ttl of 60 minutes, then I want DNSMASQ to cache it for 60 minutes, but I want my clients to receive a TTL of 5 minutes so that they query my DNSMASQ server again every 5 minutes. I basically want to avoid having each client's OS doing any caching.

Is this possible?


Thanks!

Last edited by Fredde87; 04-19-2010 at 06:09 AM.
 
Old 04-19-2010, 08:31 AM   #2
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Original Poster
Rep: Reputation: 30
I have been looking at the source code for dnsmasq to see if I somehow can easily change so that dnsmasq operates like it should, however just change where it sends the result to the client so that it always sends 300 seconds. I have very basic understanding of C though, can anyone point me in the right direction in the source code as to where I can find the part where the results are sent to the client? I found where it adds it to the cache database, however I want to leave this where it is so that it still respects the upstream dns servers TTL.
 
  


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
dnsmasq doubt/question dpballey Slackware 15 03-05-2008 01:56 PM
DNS TTL Question zok Linux - Networking 2 12-08-2006 04:20 AM
TTL value gabsik Linux - Networking 7 04-21-2006 04:07 AM
dnsmasq question davepass Linux - Software 0 02-25-2006 04:01 PM
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 09:18 AM

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

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