Author Topic: File Hosts.. ใน System32 คืออะไรทำอะไรได้บาง  (Read 883 times)

treecom

  • Global Moderator
  • Newbie
  • *****
  • Posts: 30
    • View Profile
File  Hosts ใน windows XP -> System32 มีไว้ทำอะไร

Share on Bluesky Share on Facebook


treecom

  • Global Moderator
  • Newbie
  • *****
  • Posts: 30
    • View Profile
ฟล์ host คืออะไร

ไฟล์ host ใน windows ทำหน้าที่ในการเก็บค่า IP Address ของเครื่อเพื่อใช้ Map กับชื่อโฮส หรือชื่อเครื่อง

ใช้ทำอะไร

ใช้เืพื่อให้สามารถ Remote ด้วยชื่อของเครื่อง โดยเมื่อเรียกด้วยชื่อเครื่องที่ Map ไว้ ก็จะวิ่งไปตาม IP Address ที่ระบุไว้

ปัญหาที่เกิดขึ้น ถ้าไม่มีการ Map ชื่อเครื่องกับ IP Address ไว้
โดยปกติแล้วจะไม่ค่อยเจอปัญหานี้ ถ้าเครื่องคอมพิวเตอร์เชื่อมต่อกับ Router ปัญหาส่วนใหญ่ที่พบเกิดจากการเชื่อมต่อระหว่าง Router กับ Router


วิธีการแก้ไขปัญหา ถ้าไม่สามารถ Remote ด้วยชื่อเครื่อง

สามารถเ้ข้าไปที่ Path C:\Windows\System32\Drivers\Etc\host โดยมีรายละเีอียดดังนี้

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
192.xxx.xxx.xxx   ชื่อเครื่อง

เปิดมาแก้ไขด้วย Notepade โดยจากตัวอย่าง 192.xxx.xxx.xxx hostname บันทึกและปิด โดยไม่ต้อง
Restart เครื่อง ทดสอบได้โดยการ Remote เข้าไปยังเครื่องๆนั้นด้วย ชื่อเครื่องที่ Map ไว้
Reference
http://www.nickservice.com/board/read.asp?no=144
http://topsphuket.com/index.php/%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B9%82%E0%B8
« Last Edit: August 17, 2012, 08:32:00 am by treecom »

treecom

  • Global Moderator
  • Newbie
  • *****
  • Posts: 30
    • View Profile
สามารถ บังคับให้ใน วง Lan หรือ เครือค่ายของคุณ ไม่ให้เรียกหรือเปิด websit ที่คุณต้องการได้
เช่น
ุ้ถ้าใส่  8.8.8.8  www.google.co.th
คุณจะไม่สามารถ เรียก google.co.th ออกมาได้เลย