看板 Linux 關於我們 聯絡資訊
※ 引述《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
kadok:最近開始流行man-page.............XD 03/19 15:34