How to Change a System Domain Name
- 1). Click the Start menu.
- 2). Type "CMD" (without the quotes) in the search box.
- 3). Right-click "cmd.exe" from the search results and choose "Run as administrator." This will launch Command Prompt.
- 4). Type the following command and press the "Enter" key:
regfind -p HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\parameters "old DNS value" -r "new DNS value(s)"
Replace "old DNS value" with your old system domain name. Replace "new DNS value" with the new domain name that you want to use. - 5). Type "exit" (without the quotes) to close Command Prompt.
- 6). Reboot your computer to end the task.
Source...