Re: [asterisk-users] SIP host name resolution

2017-02-04 Thread Max Grobecker
Hi,


Am 03.02.2017 um 18:23 schrieb Steve Edwards:
> If I have a SIP endpoint defined in sip.conf using a host name instead of an 
> IP address, do I have to reload sip to get Asterisk to 're-resolve' the host 
> name if I change the IP address in my DNS?

Normally, Asterisk honours DNS TTL and will re-lookup hosts as soon as the TTL 
is expired.
If you can't wait for that to happen, you can enable the builtin DNS manager 
and configure a refresh interval for DNS records to expire.
See "dnsmgr.conf" for the latter one.


> Does the answer change if the host name in sip.conf resolves to a CNAME and I 
> change the CNAME in my DNS?

Not as far as I know.
If you enabled SRV lookups for Asterisk, you may also want to check possibly 
existing SRV records for your host since Asterisk then looks them up first.


Max

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] SIP host name resolution

2017-02-03 Thread Steve Edwards
If I have a SIP endpoint defined in sip.conf using a host name instead of 
an IP address, do I have to reload sip to get Asterisk to 're-resolve' the 
host name if I change the IP address in my DNS?


Does the answer change if the host name in sip.conf resolves to a CNAME 
and I change the CNAME in my DNS?


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users