Under the hood, dns.exe opens more than 5000 UDP ports during start up, 2500 for UDP IPv4, 2500 for UDP IPv6. Large amount of kernel memory is also allocated for these ports.
Dnscmd /Info /SocketPoolSize
Set config (not quite excessive output value of 10):
Dnscmd /Config /SocketPoolSize 10
After change, restart the DNS service.