Re: [問題] domain name 查詢順序問題
※ 引述《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.
--
為什麼天上的星星像人群一樣擁擠,
又為什麼地上的人們像星星一樣疏離。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.217.97.10
推
03/19 15:34, , 1F
03/19 15:34, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):