See also #95 for a follow-up PR to support multiple DNS servers for a single network interface.
I've also had the chance to perform a number of measurements to see how long the WMIC command takes. A usual run takes around 0.15s, with rare (random?) spikes up to 8s on my test server that does nothing in particular. The very first run seems to take ~1.5s.
We may want to eventually look into parsing ipconfig /all which seems to fluctuate less. Note that parsing likely requires more effort as its output is localized (on some Windows versions?). See also https://gist.github.com/search?utf8=%E2%9C%93&q=ipconfig+%2Fall&ref=searchresults, https://stackoverflow.com/questions/41130434/parsing-second-dns-from-ipconfig-all-windows-batch and https://www.google.de/search?q=windows+ipconfig+/all&source=lnms&tbm=isch. PRs are much appreciated ๐
Also, this feature currently returns a list of all DNS servers. It does currently not take "special" DNS servers into account, such as DNS server settings automatically assigned to VirtualBox network interfaces, see https://gist.github.com/clue/ed235ad8d50087d098e4de5fd370b25e#file-gistfile1-txt-L102 and https://www.virtualbox.org/manual/ch09.html#nat-adv-dns.
Practically, this feature is documented to only actually apply the first DNS server from this list (see #93 and also #6). Because phsyical network interfaces seem to always use a smaller "interface ID", this is unlikely to cause any issues for now. PRs to improve this eventually are much appreciated! ๐