Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-19-2010, 06:04 AM   #1
Registered: Aug 2005
Posts: 158

Rep: Reputation: 30
Dnsmasq TTL question


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 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?


Last edited by Fredde87; 04-19-2010 at 06:09 AM.
Old 04-19-2010, 08:31 AM   #2
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration