c:>Netdom renamecomputer
To join a computer to domain:
c:>netdom join
To set a DNS IP in IP Configuration:
c:>Netsh interface ip set dns “local area connection” static
C:\Users\Administra tor> netsh interface ipv4 show interfaces
Idx Met MTU State Name
— — —– ———– ——————-
1 50 4294967295 connected Loopback Pseudo-Interface 1
10 20 1500 connected Local Area Connection
C:\Users\Administra tor>netsh interface ipv4 set address name=”Local Area Connect
ion” source=static address=192. 168.0.5 mask=255.255. 255.0 gateway=192. 168.0.1
netsh interface ipv4 set address name=”” source=static address= mask= gateway= Where:
ID is the name of the LAN Connection
StaticIP is the static IP address that you are setting
SubnetMask is the subnet mask for the IP address
DefaultGateway is the default gateway
C:\Users\Administra tor>netsh interface ipv4 add dnsserver name=”Local Area Conne
ction” address=192. 168.0.1 index=1
C:\Users\Administra tor>netsh interface ipv4 add dnsserver name=”Local Area Conne
ction” address=192. 168.0.10 index=2
netsh interface ipv4 add dnsserver name=”” address= index=1 Where:
ID is the name of the Network Connection
DNSIP is the IP address of your DNS server
Ethernet adapter Local Area Connection:Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom 440x 10/100 Integrated Controller
Physical Address. . . . . . . . . : 00-1D-09-D4- 2C-8F
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.0.5( Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255. 0
Default Gateway . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 192.168.0.1
192.168.0.10
127.0.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled
C:\Users\Administra tor> netsh interface ipv4 set address name=”Local Area Connection” source=dhcp