1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/gnrc_sock_dns
Gerson Fernando Budke 6149531684 boards: Introduce atxmega-a3bu-xplained board
Add initial version.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-04-07 20:06:11 -03:00
..
tests-with-config tests/gnrc_sock_dns: move to test-with-config 2021-01-25 21:10:08 +01:00
main.c tests/gnrc_sock_dns: add a message queue 2020-02-22 00:18:01 +01:00
Makefile Kconfig/pktbuf : Fix check for "CONFIG_GNRC_PKTBUF_SIZE" 2020-10-16 16:02:03 +05:30
Makefile.board.dep tests/gnrc_sock_dns: move board specific deps in Makefile.board.dep 2019-12-06 21:19:49 +01:00
Makefile.ci boards: Introduce atxmega-a3bu-xplained board 2021-04-07 20:06:11 -03:00
README.md tests/gnrc_sock_dns: port to shell based test 2019-03-27 11:35:45 +01:00

Overview

This folder contains a test application for RIOT's sock-based DNS client.

How to test with native

Setup up a tap interface:

$ sudo ip tuntap add dev tap0 mode tap user $(id -u -n)
$ sudo ip a a 2001:db8::1/64 dev tap0
$ sudo ip link set up dev tap0

Start dnsmasq (in another console):

$ sudo dnsmasq -d -2 -z -i tap0 -q --no-resolv \
    --dhcp-range=::1,constructor:tap0,ra-only \
    --host-record=example.org,10.0.0.1,2001:db8::1

(NetworkManager is known to start an interfering dnsmasq instance. It needs to be stopped before this test.)

Then run the test application

$ make term

Now use the RIOT shell to configure the DNS server and request example.org from it

> dns server 2001:db8::1
> dns server
DNS server: [2001:db8::1]:53
> dns request example.org
example.org resolves to 2001:db8::1