solaris 上網相關
1. /etc/hosts or /etc/inet/hosts hosts file
2. /etc/resolv.conf DNS 解析
3. /etc/nsswitch.conf 名稱conf檔
4. /etc/defaultrouter defaultroute
1 hosts 檔案
bash-2.05# cat /etc/hosts#
# Internet host table
#
# ip hostname
127.0.0.1 localhost
10.10.10.240 testVM
10.10.10.10 router
2 resolv.conf
bash-2.05# cat /etc/resolv.conf#DNS 解析
nameserver 168.95.1.1
nameserver 10.10.10.10
3 /etc/nsswitch.conf
bash-2.05# grep hosts /etc/nsswitch.conf# "hosts:" and "services:" in this file are used only if the
hosts: files dns
4 /etc/defaultrouter
default gatewaybash-2.05# cat /etc/defaultrouter
10.10.10.10
cat /etc/hosts
cat /etc/resolv.conf
grep hosts /etc/nsswitch.conf
cat /etc/defaultrouter
沒有留言:
張貼留言