esp-who/components/mdns/tests/host_test
scgan fd4121cdb7 update submodules to be compatible with idf5.0
- update esp-dl: branch idfv5.0
- update esp32-camera
- update bus from esp-iot-solution
- remove screen from esp-iot-solution. instead, use idf component esp_lcd
- add mdns from esp-protocols since it has been removed from idf
- update modules API due to idf API changes
2023-03-02 11:49:32 +08:00
..
components update submodules to be compatible with idf5.0 2023-03-02 11:49:32 +08:00
main update submodules to be compatible with idf5.0 2023-03-02 11:49:32 +08:00
CMakeLists.txt update submodules to be compatible with idf5.0 2023-03-02 11:49:32 +08:00
README.md update submodules to be compatible with idf5.0 2023-03-02 11:49:32 +08:00
sdkconfig.defaults update submodules to be compatible with idf5.0 2023-03-02 11:49:32 +08:00

README.md

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"