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

[reSIProcate] /etc/hosts is ignored


Hello!

I wanted to use /etc/hosts (C:\WINNT\system32\drivers\etc\hosts, 
actually) to define custom DNS mappings for reSIP/DUM based 
application. I followed the information from 
http://warsaw.sjc.purplecomm.com/wiki/index.php?title=DNS, but found 
that /etc/hosts is not consulted in the current implementation 
(neither before DNS query, nor after failed DNS resolution).

ares finds /etc/resolv.conf, and properly parses 'lookup f b' string 
from this file, but ares_query() (which is called by reSIProcate) 
never uses the information. ares_gethostby*() functions read 
/etc/hosts, but they are never called by reSIProcate...

Shouldn't ares_query() be updated with the code similar to 
ares_gethostby*() functions to use /etc/hosts?

-- 
...Bye..Dmitry.