|
|
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已! |
|
恭喜您是本站第 1735306
位訪客!
登入 | 註冊
|
|
|
|
發表者 |
討論內容 |
冷日 (冷日) |
發表時間:2014/3/14 4:00 |
- Webmaster

- 註冊日: 2008/2/19
- 來自:
- 發表數: 15773
|
- [轉貼]Linux 無法使用 nslookup 等指令
- 【系】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日誌
|
|
討論串
|