转自:https://blog.csdn.net/ricky_hust/article/details/8868131

最终可行的方法

在linux下没有单独的dig和nslookup的包,而是以bind的扩展扩展来安装的!

对于 fodora/centos/redhat

  yum install bind-utils

对于 ubuntu

  apt-get install dnsutils

对于 debian

  apt-get update

  apt-get install dnsutils


以下是我的2次尝试

尝试1

我的实验环境是[红帽企业Linux.6.4.服务器版].rhel-server-6.4-x86_64-dvd(ED2000.COM).iso

开始的时候我挂载光盘文件,在/mnt/cdrom/Packages目录下寻早dig包

[root@51cto Packages]# find -name "*dig*"
./htdig-3.2.-0.10.b6.el6.x86_64.rpm
./kacst-digital-fonts-2.0-.el6.noarch.rpm

感觉这两个都不是

这种方法参考方法二:【问题】This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.


尝试2

然后我使用yum命令在线安装dig,发现没有这个包

[root@51cto Packages]# yum -y install dig
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
Setting up Install Process
No package dig available.
Error: Nothing to do

我这个版本的Redhat是不能直接使用yum的,需要收费。解决办法参考:【问题】This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

最新文章

  1. Asp.net 设置GridView自适应列宽不变形
  2. apache配置rewrite及.htaccess文件(转载)
  3. PHP mail()函数
  4. Beaglebone Black – 智能家居控制系统 LAS - 插座组装
  5. 51nod 1211 数独
  6. python+selenium环境配置(windows7环境)
  7. MVC 模板页和布局
  8. java-环境变量的配置
  9. Async/Await 学习与示例
  10. K8s 入门
  11. JavaScript调用上下文(第九天)
  12. React 避免重渲染
  13. boke练习: freemarker对空变量报错 (classic_compatible设置true,解决报空错误)
  14. IntelliJ IDEA推荐插件
  15. JQuery this和$(this)的区别
  16. Ubuntu14.04更换阿里云源
  17. ImportError: cannot import name 'izip & TypeError: 'float' object cannot be interpreted as an integer
  18. 一起学Angular
  19. MYSQL 调优和使用必读
  20. 华天正real210开发板测试-第1篇

热门文章

  1. JS读取本地文件及目录的方法
  2. 使用SWO代替UART,实现Printf打印功能
  3. MySQL的注入总结
  4. Asp.Net文件的上传和下载
  5. eNSP——配置基于地址池的DHCP
  6. Redis集群部署与维护
  7. MySQL 事务一览
  8. 数组、可变参数 、this关键字 (札记)
  9. Linux_Ubantu下编译c++文件
  10. Python 安装包时选择 python版本