Set DNS Server

I’m doing an GPRS/IP connection in an OpenAT Application on Q2686Rd(Fw7.44), which is going quite well if i don’t care about DNS.

Unfortunatly, now, I need to set the DNS server for domain resolution.
I’m using wip_bearerSetOpts to do so, but it doesn’t work properly.
Heres the part :

/.../
r = wip_bearerOpen (&ac_GPRSbearerHdl,
                   "GPRS",
                   ac_BearerOpen_Handler,
                   NULL);
/.../
r = wip_bearerSetOpts (ac_GPRSbearerHdl,
                   WIP_BOPT_GPRS_APN,  strAPNName,
                   WIP_BOPT_LOGIN,        strAPNLogin,
                   WIP_BOPT_PASSWORD, strAPNPwd,
                   WIP_BOPT_GPRS_CID, 1,
                   WIP_BOPT_IP_DNS1, "194.230.1.71",
                   WIP_BOPT_IP_DNS2, "194.230.1.103",
                   WIP_BOPT_END);
/.../
rbs = wip_bearerStart (ac_GPRSbearerHdl);
/.../
sckt_hTcpChannel = wip_SSLClientCreateOpts("server_name", port, sckt_EventHandler, ctx,
                                            WIP_COPT_PORT, portNo,
                                            WIP_COPT_END);
/.../

If I remove both WIP_BOPT_IP_DNSx lines, every thing goes well…

I know that my DNS servers are not the issue, because (for testing purpose only!), I’m currently using my provider’s ones.
The ones that the modem uses when I remove these lines (I’ve checked with “AT+WIPBR=3,6,17”).

What could be wrong ?

Hi,

Can you please capture the WIP debug traces.

Thanks.

wip_TCPClientCreate falls in timeout after 25sec (That’s the same, even with a longer timeout).
then I call wip_close, etc:

01:25:05,273 - DEBUG - [ACNX] wip_netInit:OK (0)
[GPRS]: open: -> DISCONNECTED
01:25:05,291 - DEBUG - [ACNX] wip_bearerOpen:OK (0)
[GPRS]: GPRS CTX (cid=1) found
01:25:05,337 - DEBUG - [ACNX] wip_bearerSetOpts:OK (0)
[GPRS]: start: -> CONNECTING
01:25:06,402 - DEBUG - [ACNX] wip_bearerStart:OK_INPROGRESS (-27) (retry 0)
[GPRS]: GPRS CTX (cid=1) found
[GPRS]: GPRS EVENT SETUP OK (cid=1): GPRS activate
[GPRS]: GPRS CTX (cid=1) found
[GPRS]: GPRS EVENT: 27 (cid=1)
[GPRS]: GPRS CTX (cid=1) found
[GPRS]: GPRS EVENT ACTIVATE OK (cid=1)
[GPRS]: GPRS: -> CONNECTED
01:25:09,957 - DEBUG - [ACNX] ac_BearerOpen_Handler CONNECTED (ctx:0)
01:25:09,997 - DEBUG - [SCKT] wip_TCPClientCreateOpts:OK portNo=4333
[WIP] new TCPCLIENT 0x18179360
01:25:10,008 - INFO - [SCKT] Trying to connect 
01:25:35,072 - DEBUG - [TIMER] ac_OpeningSock_Time_CB (TO=250)
01:25:35,079 - INFO - [SCKT] wip_close:OK (0)
[WIP] closing TCPCLIENT 0x18179360
[GPRS]: stop: stop GPRS interface
[GPRS]: stop: GPRS deactivate -> DISCONNECTING
01:25:36,103 - DEBUG - [ACNX] wip_bearerStop:OK_INPROGRESS (-27)
[GPRS]: GPRS CTX (cid=1) found
[GPRS]: GPRS EVENT: 2 (cid=1)
[GPRS]: GPRS CTX (cid=1) found
[GPRS]: GPRS EVENT DEACTIVATE OK/KO (cid=1): -> DISCONNECTED
01:25:39,596 - DEBUG - [ACNX] ac_BearerOpen_Handler STOPPED (ctx:0)
01:25:39,604 - DEBUG - [ACNX] wip_bearerClose:OK (0)
[WIP]  No more ctx, call adl_gprsUnsubscribe()
[GPRS]: close: -> CLOSED