How to set and get DNS-Server on new rpcWiFi lib for Wio Terminal?

I can confirm that with firmware v2.0.4 the command WiFi.dnsIP() now returns the address of the DNS Server.
However I have the issue that when I call WiFi.config() before WiFi.begin() the WiFi.status() stays 0 (WL_IDLE_STATUS) and doesn’t reach staus 3 (WL_CONNECTED).
Is this the correct behavior? In an example for the ESP32 I saw code where WiFi.config is called before WiFi.begin().
When I call WiFi.config() after WiFi.begin() everything seems to be as expected.