I did that except I put a 1 where you have a 0 in dns_setserver. After seeing your post I search the source and see that I should have put a zero there as well. Thanks!hassan789 wrote:yes, i got it to work.. you need to add this
Code: Select all
ip_addr_t d; d.type = IPADDR_TYPE_V4; d.u_addr.ip4.addr = 0x08080808; //22.214.171.124 dns dns_setserver(0, &d);
I thought that the first param was the number of servers you are passing in. But it's the zero based index of the server you are assigning.