首先,你可以在/etc/hosts中加入一些主机名称和这些主机名称对应的IP地址,这是简单使用本机的静态查询.要访问Ubuntu DNS 服务器来进行查询,需要设置/etc/resolv.conf文件.假设Ubuntu DNS服务器的IP地址是192.168.3.2, 那么/etc/resolv.conf文件的内容应为:

    1. search test.com  
    2. nameserver 192.168.3.2 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-04-28
  • 2021-07-22
  • 2021-12-09
  • 2022-01-31
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-07-18
  • 2021-12-21
  • 2022-12-23
  • 2022-02-07
  • 2021-09-11
  • 2021-12-31
相关资源
相似解决方案