IP assigning DHCP

Hi Mayank sir

I have one doubt regarding automatic assigning using dhcp
So you opened window 10 fresh machine
Changed the network setting from manual to automatic and it automatically picked up the ip from mayank.com
My question is how the computer identifying the network even when its not in domain and picking up the domain network even when its a completely fresh machine and not even on domain.

Home Official Website Video Portal