domain name 查詢順序問題 - Linux

Table of Contents

※ 引述《yckang (寂寞秋江一夜霜)》之銘言:
: 請問一下 當我在我的 hosts 檔下面定義好 ip domain NAME 的對應
: 例如 192.168.0.5 a.b.com
: 但是當我用 nslookup 查詢 a.b.com 的時候,解出來的資料卻不是192.168.0.5
: 而是 DNS 回應給我的資料。
: /etc/nsswitch.conf 中 hosts的設定是先 file 後 dns
: 那位什麼還是會跑去問 dns 呢

man一下 nslookup:

[DESCRIPTION]

Nslookup is a program to query Internet domain name servers. Nslookup
has two modes: interactive and non-interactive. Interactive mode allows the
user to query name servers for information about various hosts and domains
or to print a list of hosts in a domain. Non-interactive mode is used to print
just the name and requested information for a host or domain.

--

為什麼天上的星星像人群一樣擁擠,

又為什麼地上的人們像星星一樣疏離。

--

All Comments

Odelette avatarOdelette2010-03-21
最近開始流行man-page.............XD