hassan789 wrote:yes, i got it to work.. you need to add this
Code: Select all
d.type = IPADDR_TYPE_V4;
d.u_addr.ip4.addr = 0x08080808; //126.96.36.199 dns
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!
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.