パッケージをインストールせずにコマンドを実行します。
“command not found"となっています。
コマンドを実行
#nslookupコマンドを実行 [root@test-vm-01 ~]#nslookup www.yahoo.co.jp -bash: nslookup: command not found
#digコマンドを実行 [root@test-vm-01 ~]#dig www.yahoo.co.jp -bash: dig: command not found
#hostコマンドを実行
[root@test-vm-01 ~]#host www.yahoo.co.jp -bash: host: command not found
コマンド名でインストール
コマンド名でインストールしてみます。
パッケージが見つからず、エラーになります。
コマンド名でインストール
[root@test-vm-01 ~]#dnf install nslookup
Last metadata expiration check: 0:20:11 ago on Sat May 25 06:53:45 2024.
No match for argument: nslookup
Error: Unable to find a match: nslookup
#bind-utilsのパッケージを確認
[root@test-vm-01 ~]#dnf search bind |grep bind-utils Last metadata expiration check: 0:13:20 ago on Sat May 25 06:53:45 2024. bind-utils.x86_64 : Utilities for querying DNS name servers
#bind-utilsをインストール [root@test-vm-01 ~]#dnf -y install bind-utils Last metadata expiration check: 0:19:39 ago on Sat May 25 01:21:18 2024. Dependencies resolved. ======================================== Package Arch Version Repository Size ======================================== Installing: bind-utils x86_64 32:9.16.23-18.el9_4.1 appstream 200 k Installing dependencies: bind-libs x86_64 32:9.16.23-18.el9_4.1 appstream 1.2 M bind-license noarch 32:9.16.23-18.el9_4.1 appstream 12 k fstrm x86_64 0.6.1-3.el9 appstream 27 k libuv x86_64 1:1.42.0-1.el9 appstream 149 k protobuf-c x86_64 1.3.3-13.el9 baseos 34 k
[root@test-vm-01 ~]#dnf provides nslookup Last metadata expiration check: 4:21:05 ago on Sat May 25 02:23:34 2024. bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : @System Matched from: Filename : /usr/bin/nslookup
bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : appstream Matched from: Filename : /usr/bin/nslookup
[root@test-vm-01 ~]# dnf provides dig Last metadata expiration check: 4:21:12 ago on Sat May 25 02:23:34 2024. bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : @System Matched from: Filename : /usr/bin/dig
bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : appstream Matched from: Filename : /usr/bin/dig
[root@test-vm-01~]# dnf provides host Last metadata expiration check: 4:21:17 ago on Sat May 25 02:23:34 2024. bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : @System Matched from: Filename : /usr/bin/host
bind-utils-32:9.16.23-18.el9_4.1.x86_64 : Utilities for querying DNS name : servers Repo : appstream Matched from: Filename : /usr/bin/host