Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix DNS get methods#809

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 1 commit intoarduino:mainfrommanchoz:fix_get_dns
Jan 9, 2024
Merged

Fix DNS get methods#809

facchinm merged 1 commit intoarduino:mainfrommanchoz:fix_get_dns
Jan 9, 2024

Conversation

@manchoz
Copy link
Contributor

This PR fixes the::dnsServerIP() and::dnsIP() methods to retrieve the DNS server configuration properly.

The issue is due toNetworkInterface.cpp#L111-L112 ultimately requiring the interface name because oflwip_dns.c#L505-L506

JAndrassy reacted with thumbs up emoji
@JAndrassy
Copy link
Contributor

JAndrassy commentedDec 22, 2023
edited
Loading

DHCP sets the DNS server IP for specific interface_name. so they must be retrieved with the right interface_name.

for curios this is the implementation of get_dns_server in NetworkInterface.cpp in Mbed OS

nsapi_error_t NetworkInterface::get_dns_server(int index, SocketAddress *address, const char *interface_name){    return get_stack()->get_dns_server(index, address, interface_name);}

@facchinmfacchinm merged commitb6ed803 intoarduino:mainJan 9, 2024
@manchozmanchoz deleted the fix_get_dns branchJanuary 9, 2024 11:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@manchoz@JAndrassy@facchinm

[8]ページ先頭

©2009-2025 Movatter.jp