dhcpv6_client: add DNS recursive name server option handling #16585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
Now that I finally have IPv6 at home, I started playing around with configuring my OpenWRT as a 6LoWPAN border router, using an nrf52840dongle with
cdc-ecm
as the actual border router.It took me a while to remember that I also can get the DNS server information from the WRT's router advertisements using the
gnrc_ipv6_nib_dns
, so I added this optional feature to the DHCPv6 client.Testing procedure
Compile the border router example with DHCPv6 with
dhcpv6_client_dns
andsock_dns
, flash it, and wait until the DHCPv6 initialization is completed (you can check by looking at the 6LoWPAN interface; when it has a global address the procedure is complete). Given that you have your DHCPv6 server and firewall configured properly, you should now be able to ping a host name from the border router (did not test from downstream nodes as there are currently other problems in my network preventing that... but that would be unrelated from this PR anyway since that config would not come via DHCPv6).Here is the excerpt from my home setup:
Unplug dongle and plug it to OpenWRT router
Issues/PRs references
—