Comments (8)
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:
void dns_setserver(u8_t numdns, ip_addr_t *dnsserver);
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);
// …
}
from mbed-os.
I suppose it would be best to actually expose it. Should it be a separate
method or optional initialisation argument?
Separate method would make sense to me, but optional argument is perfectly
fine too...
On 31 Oct 2013 23:54, "Adam Green" [email protected] wrote:
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:void dns_setserver(u8_t numdns, ip_addr_t *dnsserver);
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); // …}
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/100#issuecomment-27550385
.You received this message because you are subscribed to the Google Groups
"mbed-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
from mbed-os.
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.
from mbed-os.
Ah, I made that mistake again... It was my reply. So OK, I'll add a separate method when I have a moment.
from mbed-os.
ARM Internal Ref: IOTMORF-329
from mbed-os.
@geky Is this resolved with the updated DNS query?
from mbed-os.
Yes, though given the date, I'm assuming this issue was raised about the old EthernetInterface?
from mbed-os.
Updated with new EthernetInterface.
from mbed-os.
Related Issues (20)
- STM32WL Deep Sleep STOP1 over consumption HOT 2
- TARGET_STM: masking logic for CAN rx interrupt is wrong HOT 2
- Buffer overflow vulnerablilty in MbedOS BLE Cordio stack HOT 2
- STM32WL USART2@2400 not working with every device HOT 6
- STM32WL System Clock differs at boot/reset and after deepsleep HOT 2
- Mbed CLI 2 USB no such file or directory HOT 2
- mbed-tools deploy is limiting the git fetch specification HOT 2
- STM32_gen_peripheralPins.py chrashing after generating pinmaps HOT 3
- Linking with error: "cannot move location counter backwards" HOT 1
- BLE start routine freezes when the event_queue dispatching inside mbed-os-ble-utils moved to a thread HOT 1
- Include directive issue with BLE API HOT 1
- PD_14 is not labeled as a SPI CS pin for Nucleo-F413ZH HOT 5
- time(NULL) not returning real RTC value after reboot HOT 1
- PC_13 is unlisted HOT 2
- TARGET_STM32F303xC: SetSysClock() missing HOT 2
- Update hidapi used for non-Linux platforms HOT 2
- Flashing Controller from Docker Container HOT 2
- mbed::CircularBuffer interrupt safe but not thread safe? HOT 2
- STM32 I2CSlave race condition causing timeouts
- LoRaWAN no OTAA Uplink on AS923 region STM32WL HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbed-os.