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

Re: [reSIProcate-users] resiprocate on iPhone - DNS server addresses


In my experience the "normal" OS X DNS stuff only works when running under the 
simulator.  On the device, you have to resort to some fairly painful hacks.

On Jan 25, 2012, at 4:46 AM, Nauman Sulaiman wrote:

> Hi, 
> 
> We are considering using resiprocate 1.7 for a future iphone project. We have 
> compiled the sipdialler application and are running it on a device.
> 
> In the mail archives it is mentioned that there should be no code changes 
> required to run the stack on iphone. This seems to be the case but in 
> ares_init.c there is code to obtain nameservers on MacOS X. However if 
> running on an iphone device it seems to simply get the loopback address as a 
> nameserver and then of course it can't resolve anything.
> 
> static void init_by_defaults_systemconfiguration(ares_channel channel)
> {
>  ------------
> 
>  channel->servers[0].addr.s_addr = htonl(INADDR_LOOPBACK);
>    channel->servers[0].default_localhost_server = 1;
>    channel->nservers = 1;
> 
> }  
> 
> Does this bit of work still need doing then or am I missing something?
> 
> Thanks
> 
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/