2024A-SW/managed_components/espressif__mdns/tests/host_test
Joe Kearney e12ee17973 32ESPecial Version 1.00 (#9)
This release reworked the initialization code to provide more robust initialization, especially when no USB stick is present.

It incorporates [Version 1.0 of SystemK](Software/SystemK#9).

This is the first release for the [32ESPecial Blaster Kits](https://link.clubk.club/2025002).

Co-authored-by: Joe Kearney <joe@clubk.club>
Reviewed-on: #9
2025-11-30 21:46:46 +00:00
..
components/esp_netif_linux Pulled in the latest SystemK (with new BLE). (#2) 2025-06-08 22:05:06 +00:00
main Pulled in the latest SystemK (with new BLE). (#2) 2025-06-08 22:05:06 +00:00
CMakeLists.txt Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
dnsfixture.py 32ESPecial Version 1.00 (#9) 2025-11-30 21:46:46 +00:00
pytest_mdns.py 32ESPecial Version 1.00 (#9) 2025-11-30 21:46:46 +00:00
README.md Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
sdkconfig.ci.app Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
sdkconfig.ci.console Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
sdkconfig.ci.target Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00
sdkconfig.defaults Initial public release of the 2024A software. 2025-01-25 14:04:42 -06:00

Setup dummy network interfaces

Note: Set two addresses so we could use one as source and another as destination

sudo ip link add eth2 type dummy
sudo ip addr add 192.168.1.200/24 dev eth2
sudo ip addr add 192.168.1.201/24 dev eth2
sudo ip link set eth2 up
sudo ifconfig eth2 multicast

Dig on a specified interface

dig +short -b 192.168.1.200 -p 5353 @224.0.0.251 myesp.local

or a reverse query:

dig +short -b 192.168.2.200 -p 5353 @224.0.0.251 -x 192.168.1.200

Run avahi to browse services

Avahi needs the netif to have the "multicast" flag set

david@david-comp:~/esp/idf (feature/mdns_networking_socket)$ avahi-browse -a -r -p
+;eth2;IPv6;myesp-service2;Web Site;local
+;eth2;IPv4;myesp-service2;Web Site;local
=;eth2;IPv6;myesp-service2;Web Site;local;myesp.local;192.168.1.200;80;"board=esp32" "u=user" "p=password"
=;eth2;IPv4;myesp-service2;Web Site;local;myesp.local;192.168.1.200;80;"board=esp32" "u=user" "p=password"