Display computer name, secondary DNS
-
2006年10月11日 7:07
Hi,
Just started to set up my first Server Core. I´m not used to this whole "cmd-thingy" but I´m getting there :-).
Couple of questions so far:1) How do i display the computername and the change it?
2) How do I add a secondary DNS server?
Thanks.....
全部回复
-
2006年10月11日 14:47
The "hostname" command will display the current name.
You'll need to know the current name in order to use netdom renamecomputer \\existingName /New:newName
Andrew answered the DNS question in another post:
...
To set the multiple DNS Servers, you need to include the index= parameter, for example:
netsh interface ipv4 add dnsserver name="#" address=192.168.100.1 index=1
netsh interface ipv4 add dnsserver name="#" address=192.168.100.2 index=2
...
-
2006年10月11日 17:42
Ok, thanks alot! -
2006年10月12日 16:23所有者:
Hi,
Netdom will only rename the server if it is domain joined. If it is not domain joined you can use the wmic command:
wmic computersystem where name="%computername%" rename name="new_name"
Note that this must be run using the built in administrator account.
As far as computer name goes, some other methods are:
- ipconfig /all
- set c
- systeminfo
Hope that helps,
Andrew

