domain name 查詢順序問題 - Linux
By Ophelia
at 2010-03-19T13:39
at 2010-03-19T13:39
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.
--
為什麼天上的星星像人群一樣擁擠,
又為什麼地上的人們像星星一樣疏離。
--
: 請問一下 當我在我的 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.
--
為什麼天上的星星像人群一樣擁擠,
又為什麼地上的人們像星星一樣疏離。
--
Tags:
Linux
All Comments
By Odelette
at 2010-03-21T15:33
at 2010-03-21T15:33
Related Posts
FTP server的頻寬管理
By Hardy
at 2010-03-19T09:37
at 2010-03-19T09:37
如何在特定時間區間中執行不同的指令?
By Rebecca
at 2010-03-19T09:29
at 2010-03-19T09:29
如何讓系統定時自動執行一個指令
By Sandy
at 2010-03-19T09:24
at 2010-03-19T09:24
Linux 系統時間校對
By Tracy
at 2010-03-19T06:13
at 2010-03-19T06:13
ubuntu karmic(kernel 2.6.31) lm-sensor
By Mary
at 2010-03-19T02:29
at 2010-03-19T02:29