Quote:
Originally Posted by shia86
Code:
72.21.195.161 spectrum.s3.amazonaws.com
I expect the /etc/hosts file can take effect and then i can open the website using name not ip
|
Check that your /etc/nsswitch.conf lists 'files' as the first choice, like this **SAMPLE**:
Code:
# /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 mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis