LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-15-2016, 11:38 AM   #1
cerien
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Rep: Reputation: Disabled
dns local caching -


Hi

I am using the IPBX asterisk with chan_sip. It has a known flaw, which is when WAN access goes down, the sip stack goes crazy because it fails to resolve domain names, and all IP communication goes down.

The workaround is to use a DNS cache on the server. That works to the extent of the TTL. Ie, while the TTL is greater than 0, the dns cache will serve the local value, but when it reaches 0, it fails and the same issue arises.

Is there a way to configure the local dns cache so that it delivers a default static value when the resolution fails ?

Thanks for the help
J.
 
Old 07-16-2016, 09:19 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,112

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
The man page for nsswitch describes how to set this up. Try DNS first, if that fails you could use either host files or a local NIS server configured to return the values that you want.
 
1 members found this post helpful.
Old 07-16-2016, 12:28 PM   #3
cerien
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
thanks, this is exactly what I needed - funny I didnt find it with google, I guess I did not come with the good question ! Human intelligence still rules !
 
  


Reply

Tags
dns


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
DNS caching server on local network rajcan Linux - Software 7 07-02-2011 02:13 PM
Debian Slow DNS after enabling dns caching kuangchen Debian 0 04-12-2008 01:18 PM
Local caching only DNS takes a long time to resolve essdeeay Linux - Networking 4 08-20-2004 12:41 PM
DNS still slow after installing caching DNS mooreted Linux - Networking 16 01-01-2004 01:18 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 02:54 PM

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

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