茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1729843 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
11081021552972_107.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2014/3/14 4:00:32
【系】Linux無法使用nslookup等指令

今天在練習DNS Server架設的時候, 發現我自己這台主機無法使用nslookup等指令:
# nslookup
bash: nslookup: command not found
# host
bash: host: command not found
# dig
bash: dig: command not found

這幾個指令都會出現無法使用的錯誤訊息, 基本上應該是bind-utils的套件沒有裝到, 可以用rpm -qa |grep bind來作查詢
# rpm -qa |grep bind
ypbind-1.19-9.fc7
bind-9.4.1-9.P1.fc7
bind-chroot-9.4.1-9.P1.fc7
rpcbind-0.1.4-6.fc7
bind-libs-9.4.1-9.P1.fc7

此時可以利用yum list是否有該套件可以安裝
# yum list bind-utils
Loading "installonlyn" plugin
updates 100% |=========================| 1.9 kB 00:00
Available Packages
bind-utils.i386 31:9.4.1-9.P1.fc7 updates

再利用yum install做安裝即可
# yum install bind-utils
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package bind-utils.i386 31:9.4.1-9.P1.fc7 set to be updated

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
bind-utils i386 31:9.4.1-9.P1.fc7 updates 173 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 173 k
Is this ok [y/N]: y
(這邊輸入y表示繼續安裝)
Downloading Packages:
(1/1): bind-utils-9.4.1-9 100% |=========================| 173 kB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: bind-utils ######################### [1/1]

Installed: bind-utils.i386 31:9.4.1-9.P1.fc7
Complete!


恭喜啦, 就是這麼簡單就裝完了~



原文出處:【系】Linux無法使用nslookup等指令 @ 卡達+噗寶=阿噗噗 :: 隨意窩 Xuite日誌
內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   












 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|