1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/net/gnrc_sock_dns
Marian Buschsieweke dd0de1ba25
examples,tests: update Makefile.ci
With the new RISC-V toolchain, some binaries grew larger, most smaller.
2024-02-12 20:40:31 +01:00
..
tests-with-config tests: move net related applications to tests/net 2023-05-12 16:36:39 +02:00
main.c tests: move net related applications to tests/net 2023-05-12 16:36:39 +02:00
Makefile examples, tests: Changes for the native64 board 2024-02-05 22:02:14 +01:00
Makefile.board.dep examples, tests: Changes for the native64 board 2024-02-05 22:02:14 +01:00
Makefile.ci examples,tests: update Makefile.ci 2024-02-12 20:40:31 +01:00
README.md tests: move net related applications to tests/net 2023-05-12 16:36:39 +02: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