[Asterisk-Users] Dynamic DNS causes problems

Joe Greco jgreco at ns.sol.net
Thu Nov 4 14:34:18 MST 2004


> On Thu, 4 Nov 2004, Seth Remington wrote:
> 
> > > The only remaining problem comes from the fact that I have an ADSL
> > > connection at my home and the pppoe changes my IP address every once in
> > > a while.  I have set my sip.conf 'host=' command up with a dyndns
> > > hostname and everything works when I start *.  The moment the IP address
> [...]
> 
> > > As an ugly hack, I am tempted to have a cron job check for changes in
> > > the ip address and restart *.  The problem with this (or one of them) is
> > > that I have to somehow make sure that it isn't in the middle of a phone
> > > call when it does this.  Is there a more elegant way of doing this?
> > 
> > I'm not sure about more elegant, but...
> > 
> > Have your cron job issue an "asterisk -rx 'restart when convenient'"
> > command instead of a hard restart. That will wait until there are no
> > active channels to restart. Also, issuing a 'sip reload' instead of
> > restarting * is probably sufficient to re-register with Broadvoice.
> 
> 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 ;-) ?

Understanding the finer points of the interactions between dynamic DNS and
an application, and how to code a reasonable solution, can be a small pain.

Most programmers are not aware that DNS does provide hints as to how long
a record ought to be considered valid, but then again most administrators
don't set such specific hints anyways.  Then you have things like Windows,
where applications in many cases will never look up an address again.  :-/

... JG
-- 
Joe Greco - sol.net Network Services - Milwaukee, WI - http://www.sol.net
"We call it the 'one bite at the apple' rule. Give me one chance [and] then I
won't contact you again." - Direct Marketing Ass'n position on e-mail spam(CNN)
With 24 million small businesses in the US alone, that's way too many apples.



More information about the asterisk-users mailing list