< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [repro-users] repro not consulting hosts file ?


Hi,
Host file lookup should be handled, also for Windows OSs, by method 
AresDns::hostFileLookup(). I didn't tested it recently, but it should work.
You could try to set, just to test scenario, mHostFileLookupOnlyMode = true 
(maybe you can set an empty list of DNS servers).
Another option, more complex, is to change code in DnsResult::onDnsResult(), in 
particular the part contained in #ifdef 
WIN32_SYNCRONOUS_RESOLUTION_ON_ARES_FAILURE, to use WSALookupServiceBegin to 
resolve desired host using WinSock API.
Best regards,
Dario.


-----Original Message-----
From: repro-users [mailto:repro-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of 
Daniel Pocock
Sent: mercoledì 29 giugno 2016 09.19
To: repro-users@xxxxxxxxxxxxxxx
Subject: Re: [repro-users] repro not consulting hosts file ?



On 29/06/16 00:56, Julio Cabezas wrote:
> Hi,
> 
>  
> 
>                 I cannot make repro to route an INVITE to "xtarget" 
> when I define it in the Windows hosts file as e.g. :
> 
>                 172.28.120.100  xtarget
> 
>  
> 
>                 But when I define "xtarget" as an A record in the 
> default DNS for the server where repro runs, the INVITE is correctly 
> routed by repro.
> 
>  
> 
>                 I am running repro version 1.10.1  on Windows Server 2012R2.
> 
>  
> 
>                 Any suggestion ?
> 
>  

repro (and all of reSIProcate) use the c-ares DNS library instead of the normal 
system libraries to resolve names.

As far as I know, c-ares doesn't support the hosts file



_______________________________________________
repro-users mailing list
repro-users@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/repro-users