У меня есть сервер Ubuntu 16.04.2, работающий дома.
Мой Рабочий стол Ubuntu и все другие устройства имеют рабочий/прекрасный DNS.
Они не могут связаться с сервером через имя хоста. И сервер не может общаться с ними через имя хоста. Однако сервер видит внешний мир (ping www.google.com
) очень хорошо.
Только локальный DNS не работает, и только на моем сервере Ubuntu.
Вывод/etc/nsswitch.conf:#/etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Вот вывод/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp2s0
iface enp2s0 inet dhcp
/etc/resolv.conf показывает те же серверы DNS моими другими сетевыми устройствами...