How to change IP and DNS to obtain automatically on Windows system?

Please follow the steps below:
Open the Control Panel - Network and Internet - Change Adapter Settings - Right-click the network card you are using, Properties - Double-click "Internet Protocol Version (TCP/IPv4) - After entering here,
Change both ip and dns to obtain automatically.