-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting DNS server IP addresses #100
Comments
I didn't see anything exposed from the C++ wrapper classes but lwIP supports the following C API that you should be able to use:
Set numdns to 0 to set the primary DNS server address. Example: #include <lwip/dns.h>
int main(void) {
// …
// Set primary DNS to resolver1.opendns.com
ip_addr_t primaryDnsServer;
ip4_addr_set_u32(&primaryDnsServer, ipaddr_addr("208.67.222.222"));
dns_setserver(0, &primaryDnsServer);
// …
} |
I suppose it would be best to actually expose it. Should it be a separate
|
I don't know who I am replying to here (mbednotifications) but here is my response anyway :) I prefer the separate method as well. lwIP does default the primary DNS server to be the opendns one I used in my example above. |
Ah, I made that mistake again... It was my reply. So OK, I'll add a separate method when I have a moment. |
Updated to latest uvisor-mbed-lib version
ARM Internal Ref: IOTMORF-329 |
@geky Is this resolved with the updated DNS query? |
Yes, though given the date, I'm assuming this issue was raised about the old EthernetInterface? |
Updated with new EthernetInterface. |
…656a cbe656a Fix 'unused variable' compiler - warning (ARMmbed#103) 1599c6b CoAP blockwise transfer support (ARMmbed#94) 40abace Update memory allocation and adjust trace (ARMmbed#102) fc7bec3 Update unit test stub (ARMmbed#101) 4091f1b Check for coap_security_handler_connect_non_blocking return value (ARMmbed#100) git-subtree-dir: features/nanostack/coap-service git-subtree-split: cbe656a
Fixed a false assertion. Apparently NC is now allowed to passed to gp…
Updating mbed-os to mbed-os-5.5.4
…from 6d72419d8b..293edc63b8 293edc63b8 Merge pull request ARMmbed#100 from ARMmbed/update_from_mbedos b5c79340aa Flag chrono functions to support Mbed OS 5.15 f623784a51 Revert "Revert "(via Mbed-OS)Use std::chrono based functions (ARMmbed#98)" (ARMmbed#99)" 273491840a Revert "(via Mbed-OS)Use std::chrono based functions (ARMmbed#98)" (ARMmbed#99) 4c1cf6e8ca (via Mbed-OS)Use std::chrono based functions (ARMmbed#98) 6c1e445c43 Merge pull request ARMmbed#97 from ARMmbed/IOTTHD-4181 3e5fd70b38 Atmel RF: Data whitening configurable 16d636242a Merge pull request ARMmbed#96 from ARMmbed/IOTTHD-3433 18aed62f22 Atmel RF: Check if given TX power is invalid and return -1 86492ad9f8 Atmel RF: Implemented TX power setting fd1cd361f5 Allow PIN configuration using Mbed OS config (ARMmbed#95) git-subtree-dir: connectivity/drivers/802.15.4_RF/atmel-rf-driver git-subtree-split: 293edc63b87c4700579b14f2034ab152c0fb4f4c
…d80f42d..c343e4e2cc c343e4e2cc Merge pull request ARMmbed#99 from PelionIoT/remove_ns_trace 70c411b0f8 Remove ns_trace.h 60e99d2c02 Update copyright (ARMmbed#100) git-subtree-dir: features/frameworks/nanostack-libservice git-subtree-split: c343e4e2ccb1517881ac85140974f3eb8cd85d46
…260d80f42d..c343e4e2cc c343e4e2cc Merge pull request ARMmbed#99 from PelionIoT/remove_ns_trace 70c411b0f8 Remove ns_trace.h 60e99d2c02 Update copyright (ARMmbed#100) git-subtree-dir: connectivity/libraries/nanostack-libservice git-subtree-split: c343e4e2ccb1517881ac85140974f3eb8cd85d46
…d80f42d..c343e4e2cc c343e4e2cc Merge pull request ARMmbed#99 from PelionIoT/remove_ns_trace 70c411b0f8 Remove ns_trace.h 60e99d2c02 Update copyright (ARMmbed#100) git-subtree-dir: features/frameworks/nanostack-libservice git-subtree-split: c343e4e2ccb1517881ac85140974f3eb8cd85d46
I was not able to figure out how to set the neserver IP address(es), seems like this is currently not exposed.
The text was updated successfully, but these errors were encountered: