Mdns did not auto recover after the wifinetwork was down

Hello,

I've used the ESP32 mDNS_webserver example for my own application,
however I encountered that whenever the WIFI network was down for a short time,
the mDNS did not recover while the wifi connection did.
The WIFI connection itself from the ESP32 was recovered correctly because a ping of the ip address was succeeded. A reset of the ESP32 was needed to get mDNS up and running again

So that brings me to the next question:

Should the mDNS library autorecover when the wifi connection is lost shortly?
or is there a function needed inside the loop() to check restart when needed?
Is it allowed to start the MDNS.begin() during the loop()?

Regards, Evert Huijben