Skip to content
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

Domain Name System client library #2044

Closed
zephyrbot opened this issue Jun 28, 2016 · 2 comments
Closed

Domain Name System client library #2044

zephyrbot opened this issue Jun 28, 2016 · 2 comments
Labels
Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug
Milestone

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jun 28, 2016

Reported by Flavio Santes:

aaU, I want to be able to communicate with other network devices by means of their name instead of an IP address.

(Imported from Jira ZEP-500)

@zephyrbot
Copy link
Collaborator Author

by Mark Linkmeyer:

Juan Manuel Cruz Alcaraz , proceed without netz approach.

@zephyrbot
Copy link
Collaborator Author

by Lei Liu:

DNS client log
{code:title=Bar.java|borderStyle=solid}
shell> test_dns_query www.baidu.com


Domain name: www.baidu.com
[_test_dns_query:148] DNS Create Query: 0, ID: 2

****** DNS ANSWER: 0 ******
Response: CNAME NO IP address Size: 15: 3 119 119 119 1 97 6 115 104 105 102 101 110 192 22 CNAME: www.a.shifen.com
****** DNS ANSWER: 1 ******
Response: IP address Size: 4: 61 135 169 125
****** DNS ANSWER: 2 ******
Response: IP address Size: 4: 61 135 169 121
[_test_dns_query:164] DNS response: 0
shell> test_dns_query www.google.com


Domain name: www.google.com
[_test_dns_query:148] DNS Create Query: 0, ID: 3

****** DNS ANSWER: 0 ******
Response: IP address Size: 4: 203 98 7 65
[_test_dns_query:164] DNS response: 0
{code}
Linux net tool
{code:title=nslookup log|borderStyle=solid}
root@alvin:/home/alvin/Downloads/mqtt-1.5-rc1-test/testlib/net/test_iot_protocol# nslookup www.baidu.com
Server: 10.248.2.5
Address: 10.248.2.5#53

Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Name: www.a.shifen.com
Address: 61.135.169.125
Name: www.a.shifen.com
Address: 61.135.169.121

root@alvin:/home/alvin/Downloads/mqtt-1.5-rc1-test/testlib/net/test_iot_protocol# nslookup www.google.com
Server: 10.248.2.5
Address: 10.248.2.5#53

Non-authoritative answer:
Name: www.google.com
Address: 203.98.7.65
{code}

Compare above logs, DNS client works.
Zephyr: v1.5.0-rc1

@zephyrbot zephyrbot added priority: medium Medium impact/importance bug area: Net Protocols Enhancement Changes/Updates/Additions to existing features labels Sep 23, 2017
@zephyrbot zephyrbot added this to the v1.5.0 milestone Sep 23, 2017
This was referenced Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

1 participant