/ etc / hosts:
10.0.11.162 mpcore.bts.md mpcore
127.0.0.1 localhost.localdomain localhost
::1 mpcore localhost6.localdomain6 localhost6
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
/ etc / เครือข่าย / อินเตอร์เฟซ
auto eth0
iface eth0 inet static
address 10.0.11.162
netmask 255.255.255.0
network 10.0.11.0
broadcast 10.0.11.255
gateway 10.0.11.1
ดังนั้นเมื่อฉันใช้ IP http://10.0.11.162ฉันจะได้รับ index.html
แต่เมื่อฉันใช้http://mpcore.bts.mdฉันได้รับข้อผิดพลาด "ไม่พบเซิร์ฟเวอร์"