Re: [SR-Users] Avoid resolving names by DNS

2010-09-02 Thread Klaus Darilion
Am 02.09.2010 17:46, schrieb Andrei Pelinescu-Onciul: ipv6_only and prefer_ipv6 are obeyed only if the cache is used. they do not even exists on the Wiki :-( ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lis

Re: [SR-Users] Avoid resolving names by DNS

2010-09-02 Thread Andrei Pelinescu-Onciul
On Sep 02, 2010 at 10:13, Klaus Darilion wrote: > Hi! > > I tried to summarize the options at > http://sip-router.org/wiki/cookbooks/core-cookbook/devel#dns_parameters > > Please review and fix if something is wrong. Replaced dns_cache_init=off with use_dns_cache=off. The difference is that if

Re: [SR-Users] Avoid resolving names by DNS

2010-09-02 Thread Klaus Darilion
Hi! I tried to summarize the options at http://sip-router.org/wiki/cookbooks/core-cookbook/devel#dns_parameters Please review and fix if something is wrong. btw: are the tuning options like dns_try_ipv6, dns_retr_time, dns_retr_no, dns_use_search_list also used when the internal resolver

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 14:50, Alex Balashov wrote: > On 09/01/2010 01:25 PM, Andrei Pelinescu-Onciul wrote: > > >The problem with having fallback to the system resolver is that in case > >the entry is not in /etc/hosts (or similar), you will have double > >queries for each failure and you would also

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Alex Balashov
On 09/01/2010 01:25 PM, Andrei Pelinescu-Onciul wrote: The problem with having fallback to the system resolver is that in case the entry is not in /etc/hosts (or similar), you will have double queries for each failure and you would also not be able to do any dns fallback / srv rec. load balancin

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 19:09, Daniel-Constantin Mierla wrote: > > > On 9/1/10 7:01 PM, Andrei Pelinescu-Onciul wrote: > >On Sep 01, 2010 at 18:49, Klaus Darilion > >wrote: > >>kamailio>= 3.0 is based on ser's core which has implemented its own > >>caching resolver library. I do not know if there i

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Santiago Soares
Hello, Both options (dns_cache_init=no and use_dns_cache=no) worked for me. I think that the internal resolver is used only if cache is enabled. Thank you! Santiago Soares Fone: (41) 8488-0537 On Wed, Sep 1, 2010 at 2:09 PM, Daniel-Constantin Mierla wrote: > > > On 9/1/10 7:01 PM, Andrei Pelin

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Daniel-Constantin Mierla
On 9/1/10 7:01 PM, Andrei Pelinescu-Onciul wrote: On Sep 01, 2010 at 18:49, Klaus Darilion wrote: kamailio>= 3.0 is based on ser's core which has implemented its own caching resolver library. I do not know if there is a way to disable it complete and use the system's stub resolver. You could

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Andrei Pelinescu-Onciul
On Sep 01, 2010 at 18:49, Klaus Darilion wrote: > kamailio >= 3.0 is based on ser's core which has implemented its own > caching resolver library. I do not know if there is a way to disable > it complete and use the system's stub resolver. You could try the > "use_dns_cache" option: > http://sip-r

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Klaus Darilion
kamailio >= 3.0 is based on ser's core which has implemented its own caching resolver library. I do not know if there is a way to disable it complete and use the system's stub resolver. You could try the "use_dns_cache" option: http://sip-router.org/wiki/cookbooks/core-cookbook/devel#dns_parame

Re: [SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Alex Balashov
Unless Kamailio implements its own DNS query mechanism, it should use the system library's resolver, which hits /etc/hosts as well. It works for me to use hostnames only in /etc/hosts in my dispatcher list. Failing that, however, you can run a DNS cache locally like pdnsd or dnsmasq. Pdnsd i

[SR-Users] Avoid resolving names by DNS

2010-09-01 Thread Santiago Soares
Hello, I'm using kamailio as a simple load balancer. My dispatcher list is something like that: 1 sip:server1:5060 1 sip:server2:5060 2 sip:server1:5060 and /etc/hosts is 10.1.1.1 server1 10.1.1.2 server2 When I want to do some maintenance task in one of the servers, server2, for exe