我正在试验两台本地DNS服务器。当我关闭第二个(或主) dns服务器时,我无法解析任何域名。
使用host命令或nslookup获得超时错误:
root@ubuntu:~# host testsrv.lan
;; connection timed out; no servers could be reached
root@ubuntu:~# nslookup testsrv.lan
;; Got recursion not available from 10.0.3.4, trying next server
;; connection timed out; no servers could
场景:
我正在为运行在学生实验室中的8个Windows 7工作站创建一个网络。他们应该浏览互联网,但不能从他们的内部网之外联系到他们。为此,我使用两个网卡运行一个Ubuntu14.04服务器,一个网卡(em1)连接到我们部门的VLAN,即互联网。我正在通过iptable的伪装功能通过em2转发IPV4将工作站内部网路由到NIC IPV4。
原理图:
internet
|
departments VLAN
|
Ubuntu server / iptables
|
Switch-------
| | | | |
W W W W W ...
打嗝后,这很好,请参阅我的另一篇文章以获得
我最近设置了一个带有DNS和DHCP服务器的Windows域控制器。Windows客户端将其DNS服务器设置为与DHCP所分配的内容相匹配,但我的Ubuntu 16.04工作站只设置回送地址和搜索域:
我本来希望在/etc/resolveconf中看到设置名称服务器192.168.14.4
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nam
我正试图在我的Ubuntu18.04上安装本地主机web服务器。
如何在Ubuntu18.04上安装Linux、Apache、MySQL、(LAMP)堆栈
但是通过测试apach2,我得到了这个错误:
r$ sudo apache2ctl configtest
[Thu May 06 18:03:12.897955 2021] [core:error] [pid 22264] (EAI 2)Name or service not known: AH00549: Failed to resolve server name for 192.168.1.12 (check DNS) -- or sp