Kristian Kielhofner
2007-Apr-30 13:51 UTC
[asterisk-users] Improving Asterisk's DNS support
Hello everyone, After several years of using Asterisk I have always been frustrated by the support for DNS. I have seen all kinds of strange behavior when Asterisk is used on a system with "iffy" DNS servers: - no failover to other DNS servers in /etc/resolv.conf (might be a C library thing) - chan_sip will sometimes mark even local SIP peers as unreachable during/after any DNS problems - why? - dnsmgr doesn't support SIP (yikes!): http://bugs.digium.com/view.php?id=9153 - other randomness (please contribute your own experiences) What can we do about improving this situation? At the very least we need to extend DNS manager support to SIP. I'm willing to pay for this and any other Asterisk DNS improvements. Any other ideas? -- Kristian Kielhofner
Kristian Kielhofner wrote:> Hello everyone, > > After several years of using Asterisk I have always been frustrated > by the support for DNS. I have seen all kinds of strange behavior > when Asterisk is used on a system with "iffy" DNS servers: > > - no failover to other DNS servers in /etc/resolv.conf (might be a C > library thing)wasn't there some setting for that? I run a dns caching deamon om my * box (speeds up enum lookups big time), but i seem to recall that some dns settings could be made....> - chan_sip will sometimes mark even local SIP peers as unreachable > during/after any DNS problems - why?because your * can't resolve the names any more?> - dnsmgr doesn't support SIP (yikes!): > http://bugs.digium.com/view.php?id=9153 > - other randomness (please contribute your own experiences) > > What can we do about improving this situation? At the very least we > need to extend DNS manager support to SIP. I'm willing to pay for > this and any other Asterisk DNS improvements. Any other ideas? >-- Remco Post "I didn't write all this code, and I can't even pretend that all of it makes sense." -- Glen Hattrup
Kristian Kielhofner wrote:> After several years of using Asterisk I have always been frustrated > by the support for DNS. I have seen all kinds of strange behavior > when Asterisk is used on a system with "iffy" DNS servers:Maybe that's where you need to start - by fixing the iffy DNS? :-)> - no failover to other DNS servers in /etc/resolv.conf (might be a C > library thing)That's not the responsibility of the application.> - dnsmgr doesn't support SIP (yikes!): > http://bugs.digium.com/view.php?id=9153 - other randomness (please > contribute your own experiences)I haven't been using Asterisk for long, but I have not yet experienced any DNS-related oddities. /Per Jessen, Z?rich