Configure DNS?

mi
3

I have two VM machines (one server 2019, one Windows 10 client). Both are in their own network (VMnet5). You have no internet connection. They can ping each other. On the laptop I'm connected via Wi-Fi. How should I set up DNS on the server (VM) so that I can go to the internet on the server or client? Is that possible?

Ty

A (virtual) bridge from VMnet5 to the segment with internet access is needed.

mi

If I set to Bridge and then install dhcp on the Vm-server, it bothers the physical router, which serves as dhcp in the network

Ty

The DHCP server must of course be configured so that they do not affect.