domain name 查詢順序問題 - Linux

Ophelia avatar
By Ophelia
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.

--

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

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

--
Tags: Linux

All Comments

Odelette avatar
By Odelette
at 2010-03-21T15:33
最近開始流行man-page.............XD

FTP server的頻寬管理

Hardy avatar
By Hardy
at 2010-03-19T09:37
※ 引述《hhashoww (在淡江第七年的日子...)》之銘言: : 請問一下各位高手們 : 小弟我使用的是pure-ftpd來架設FTP server : 在pure-ftpd.conf : 其中有個UserBandwith的參數 : 單位為KB/s : 我設定為4096 : 起碼可以跑到4MB/s : ...

如何在特定時間區間中執行不同的指令?

Rebecca avatar
By Rebecca
at 2010-03-19T09:29
※ 引述《chang0206 (Eric Chang)》之銘言: : 目前利用rsync 來同步大陸和台灣的NAS,總共有將近1T的資料,頻寬是2M : 為了在上班時間不影響VPN的運作,所以在一般上班時間內,我希望將 : rsync 的速率,保持在50KB 左右,這可以用 rsync --bwlimit 來 ...

如何讓系統定時自動執行一個指令

Sandy avatar
By Sandy
at 2010-03-19T09:24
※ 引述《JCC (JCC )》之銘言: : 我的LINUX自從裝了PHPBB3之後 : 常不明原因卡住 MYSQL的LOAD到99.9% : 我那系統跟本沒幾個人用 不該這樣的 : 於是我就打 mysql /etc/init.d/mysqld restart : 然後M ...

Linux 系統時間校對

Tracy avatar
By Tracy
at 2010-03-19T06:13
※ 引述《Adama (So Say We All.)》之銘言: : ※ 引述《kadok (暗夜流星)》之銘言: : : 沒這回事吧 : : ntpdate是client端 : : ntpd是server立 : : 就算你安裝ntpd還是會安裝ntpdate,但ntpdate卻無法被你所用 : ntpdat ...

ubuntu karmic(kernel 2.6.31) lm-sensor

Mary avatar
By Mary
at 2010-03-19T02:29
HI, 我碰到一個問題想請教一下各位, 我的OS是ubuntu karmic Kernel是2.6.31-20 機器是ASUS的A2H 執行sensor-detect找到我機器上的sensor是it87 但是掛it87這個module時會出現 I/O resource it87 [0x295-0x296] ...