การตั้งค่า DNS จากคอมมานด์พรอมท์ใน Windows XP
การตั้งค่า DNS ใน Windows XP จากคอมมานด์พรอมท์ (Command Prompt) นั้น สามารถทำได้โดยใช้คำสั่ง netsh ตามขั้นตอนดังนี้
รูปแบบคำสั่ง:
netsh interface ip add dns [name=string] [addr=ip address] [index=integer]
เมื่อ
-name = ชื่ออินเทอร์เฟชที่ต้องการตั้งค่า โดยทั่วไปเป็น Local Area Connection สามารถดูชื่ออินเทอร์เฟชได้โดยใช้คำสั่ง netsh interface show interface
-addr = หมายเลข IP ของ DNS server
-index = ลำดับของ DNS เป็นตัวเลขจำนวนเต็ม เช่น 1,2,3.....
วิธีการตั้งค่า DNS Server จากคอมมานด์พรอมท์
วิธีการตั้งค่า DNS Server จากคอมมานด์พรอมท์ มีขั้นตอนดังนี้
1. ทำการเปิดคอมมานด์พรอมท์โดยคลิกที่ Start คลิก Run พิมพ์ cmd แล้วคลิก OK หรือกด Enter
2. ในหน้าต่างคอมมานด์พรอมท์ (C:>) ให้พิมพ์คำสั่งตามด้านล่าง เสร็จแล้วกด Enter
netsh interface ip add dns "Local Area Connection" 192.168.1.10 index= 1
3. จากนั้นทำการตรวจสอบการตั้งค่าโดยรันคำสั่ง IPCONFIG /ALL ที่คอมมานด์พรอมท์ ซึ่งจะแสดงหมายเลข IP address ของ DNS ที่เราใส่เข้าไปในที่นี้คือ 192.168.1.10 ตามตัวอย่างด้านล่าง (ตัดบางส่วนออก)
ตัวอย่างผลที่ได้จากการรันคำสั่ง IPCONFIG /ALL ที่คอมมานด์พรอมท์ (ตัดบางส่วนออก)
C:\Documents and Settings\twa>ipconfig /all
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : -deleted-
Description . . . . . . . . . . . : Broadcom NetXtreme Gigabit Ethernet
Physical Address. . . . . . . . . : 00-1E-0B-A9-08-E3
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.32
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.10
NetBIOS over Tcpip. . . . . . . . : Disabled
Lease Obtained. . . . . . . . . . : Tuesday, March 1, 2007 1:04:57 PM
Lease Expires . . . . . . . . . . : Thursday, April 1, 2007 1:04:57PM
ลิงค์ที่เกี่ยวข้อง
บทความโดย: Thai Windows Administrator Blog
© 2007 Thai Windows Administrator, All Rights Reserved.
Wednesday, March 7, 2007
How to configure DNS from command line in Windows XP
Related Posts:
Create Subnet in Windows Server 2003 ADซับเน็ต (Subnet) ใน Windows Server 2003 Active Directory (AD)บทความโดย: Thai Windows Administrator Blogซับเน็ต (Subnet) หรือ เครือข่ายย่อย เป็นการแบ่งเครือข่ายตามโครงสร้างของระบบหมายเลขไอพี (IP Address) บนเครือข่าย สำหรับซับเ… Read More
Install Windows Server 2003การติดตั้ง Windows Server 2003ในการติดตั้ง Windows Server 2003 Standard Edition นั้น มีความต้องการฮาร์ดแวร์ (Hardware) ขั้นต่ำตามที่ทาง ไมโครซอฟต์ได้แนะนำไว้ดังนี้1. ซีพียู (CPU) ความเร็วขั้นต่ำ 133 MHz. โดยไมโครซอฟต์แนะนำที่… Read More
Windows Server 2003: Security Configuration Wizardการใช้งาน Windows Server 2003 Security Configuration Wizard (SCW) Security Configuration Wizard นั้น จะไม่ได้ถูกติดตั้งโดยดีฟอลท์ ดังนั้นจะต้องทำการติดตั้ง Security Configuration Wizard ตามขั้นตอนดังนี้ 1. ใส่แผ่น Windows Se… Read More
เพิ่มความปลอดภัยในการใช้งาน Windows โดยการใช้งานคำสั่ง Run asเพิ่มความปลอดภัยในการใช้งาน Windows โดยการใช้งานคำสั่ง Run as โดยทั่วไปผู้เชี่ยวชาญด้านความปลอดภัยจะแนะนำให้ใช้ยูสเซอร์ธรรมดา (User หรือ Limited User) ในการทำงานทั่วไปในการใช้งานประจำวัน เช่น การพิมพ์งาน รับส่งอีเมล ใช้อินเทอ… Read More
ShellRunas - launching programs under different accounts in Windows XPการรันโปรแกรมภายใต้แอคเคาท์อื่นใน Windows XP โดยใช้ ShellRunas บทความโดย: Thai Windows Administrator Blog โดยดีฟอลท์บน Windows Vista นั้น มีทางเลือกในการรันโปรแกรมภายใต้ยูสเซอร์ Administrator โดยผ่านฟีเจอร์ User Account Con… Read More
0 Comment:
Post a Comment