Asterisk server is setup in /etc/resolv.conf to query my primary and backup NS. Had an issue with my primary NS and asterisk refused to complete any calls or forward inbound calls to extensions. I had to manually switch it to look at the backup NS first then reboot for it to start working while I fixed the primary. Is this behavior normal or am I missing a step? All hosts, etc are identified by IP. Ver 1.2.10 Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060825/ec2ecb5a/attachment.htm
On 25 aug 2006, at 20.18, Bill Gibbs wrote:> Asterisk server is setup in /etc/resolv.conf to query my primary > and backup NS. Had an issue with my primary NS and asterisk > refused to complete any calls or forward inbound calls to > extensions. I had to manually switch it to look at the backup NS > first then reboot for it to start working while I fixed the > primary. Is this behavior normal or am I missing a step? All > hosts, etc are identified by IP. >I have had similar issues. To sort of resolve this I had to install a local name-server on the machine that contains the addresses asterisk tries to resolve (changing to using IP-addresses did not fix the issue for me either). I would prefer an option in asterisk that tells it to not resolv more than once on each address. /Ola
"Ola Lidholm" <olal@plea.se> wrote:> To sort of resolve this I had to install a local name-server on the > machine that contains the addresses asterisk tries to resolve > (changing to using IP-addresses did not fix the issue for me either). > > I would prefer an option in asterisk that tells it to not resolv more > than once on each address.Have you tried setting timeout, attempts and rotate in resolv.conf? -- Henry J. Cobb http://www.io.com/~hcobb/
Bill Gibbs wrote:> Asterisk server is setup in /etc/resolv.conf to query my primary and > backup NS. Had an issue with my primary NS and asterisk refused to > complete any calls or forward inbound calls to extensions. I had to > manually switch it to look at the backup NS first then reboot for it to > start working while I fixed the primary. Is this behavior normal or am > I missing a step? All hosts, etc are identified by IP. > > > > Ver 1.2.10Most people don't think much about dns, but if your primary dns server responded with "anything" (including a simple I don't know response), the secondary dns server will not be attempted. So, depending upon exactly what was wrong with your primary, your stated result can be very normal. Regarding asterisk stop responding when no dns server is present, that's been discussed many many times on this list, the latest as of earlier this week. Asterisk code does have a problem, and I'd be reasonably certain part of the problem is the OS underlying dns resolver operates in a blocking mode. In the past, one of the suggested workarounds was to implement a dns caching-only server on the asterisk box. I've not done that and I don't recall hearing anyone's actual experience after doing it. Another suggested workaround is to use IP addresses only in your configs (which is what I've been doing for three years). But, you'll need to make sure nothing in the configs gets interpreted as a dns name.
In article <33558.68.122.234.217.1156531433.squirrel@webmail.io.com>, hcobb@io.com says...> Have you tried setting timeout, attempts and rotate in resolv.conf?Can you please tell me more about this? How to do it and what would I achieve with that? -- Tomislav Par?ina Lama Computers Split Stinice 12, 21000 Split Tel.: +385(21)495148 Mob.: +385(91)1212148 SIP: tomo@pbx.lama.hr e-mail: tparcina#lama.hr http://www.lama.hr