PDA

ดูเวอร์ชั่นเต็ม : ตอบคำถาม บ่าวคนเดิมๆ


บ่าวกันต์
09-15-2006, 10:29 PM
คำถามนี้ ถูกถามทิ้งเอาไว้ผ่านทาง MSN บ่าวกันต์ เวลาประมาณ 17: 18 นาที เห็นจะได้


www.Baanmaha.com says:
ทำอย่างไรให้สามารถเรียกเว็บของเราจากวงแลนได้
โดยใช้ชื่อเว็บของเราเช่น wcs.hopto.org ฯลฯ
ไม่ใช่เรียกจาก localhost มีความจำเป็นอย่างยิ่ง




ตอบ:
ไม่เห็นจะยากเลยครับ เพียงแค่คุณไปกำหนด default gateway และ DNS Server ที่เครื่องลูกให้ชี้มาที่ Server แค่นั้นเอง
อ่านแล้ว งง ใช่ม๊า งั้นมาดูรูปภาพประกอบล่ะกัน

http://img213.imageshack.us/img213/5071/snag0032pb6.jpg

http://img97.imageshack.us/img97/7120/baanmahateamtx1.gif

บ่าวกันต์
09-15-2006, 11:38 PM
หรือมีอีกวิธีหนึ่งที่ง่ายกว่าวิธีข้างบน ก็คือ

1. Start
2. Run...
3. พิมพ์ C:\WINDOWS\system32\drivers\etc\hosts ดังรูปภาพ
http://img228.imageshack.us/img228/9620/snag0033aa7.jpg

4. ให้เปิดไฟล์ hosts ด้วยโปรแกรม TextEditor ดังภาพ
http://img228.imageshack.us/img228/5640/snag0034yp2.jpg

5. ไฟล์ต้นฉบับเดิมๆ ที่ยังไม่มีการแก้ไขจะได้ดังนี้
# 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

ให้เพิ่มเติมดังนี้
# 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.168.100.254 kundream.ath.cx
192.168.100.254 chaksumat.ath.cx
192.168.100.254 www.chaksumat.ath.cx



IP: 192.168.100.254 = IP ของเครื่อง Webserver ครับผม

http://img97.imageshack.us/img97/7120/baanmahateamtx1.gif

บ่าวคนเดิม
09-16-2006, 08:40 PM
..เอ ผมลองแล้วมันคือ วิ่งเข้าหน้าล้อกอิน Router ท่าน ...ใน FreeBSD บ่ต้องกำหนดหยังติ

บ่าวคนเดิม
09-16-2006, 08:56 PM
;D..ได้แล้วท่าน ต้องกำหนด Preferred DNS server => IP FreeBSD Server ด้วย... 8)