[Asterisk-Users] Dynamic DNS causes problems

steve at daviesfam.org steve at daviesfam.org
Fri Nov 5 00:08:31 MST 2004



On Thu, 4 Nov 2004, Andrew Thompson wrote:

> Christoph Rothe wrote:
> > Unfortunately not. I have the same problem and the same solution here. 
> > You really have to do a restart of asterisk. I think the reason that 
> > asterisk does not always lookup the IP Adress for the DDNS-Hostname is 
> > performance. But it would be nice if a sip reload could do so. 
> > Has anybody contacts to the developers ;-) ?
> 
> Since not everyone uses DHCP, I expect not everyone will be interested 
> in this, but what about a small app specifically for checking for 
> changes in the DNS to IP lookup of specific(or any!?) hostname fields.
> 
> You could configure the app to run on your specified interval.
> 
> You could possibly tag somehow or name specific instances of the 
> hostname= fields you wanted to test.

I have a patch which has Asterisk relookup names used in register if the 
register starts to fail.   This is effective in keeping two boxes talking 
which both change IP addresses every day.

The problem is that the dns-lookup could block and take a while and foul 
up other things that should be running on the thread.  So its not really a 
production-quality solution.

Any case: does anyone want to take it and get the relookup to run on a
separate thread...?

Steve




More information about the asterisk-users mailing list