ESP32: Query mDNS service

How to use a ESP32 to query a service advertised with mDNS.