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 ?