Версия

root@server:~# cat /etc/debian_version
8.11

Не удается разрешить имена хостов

root@server:~# ping www.google.com
ping: unknown host www.google.com

ifconfig -a

root@server:/# ifconfig -a
docker0    Link encap:Ethernet HWaddr 02:42:cc:08:fa:30
           inet addr:172.17.0.1  Bcase:172.17.255.255  Mask:255.255.0.0
           UP BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0       Link encap:Ethernet  HWaddr 48:5b:39:c1:ce54
           UP BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000           
           RX bytes:0 (0.0 B)  TX bytes:15390 (15.0 KiB)

lo         Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.255.0.0
           inet6 addr:  ::1/128  Scope:Host
           UP BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:14591 errors:0 dropped:0 overruns:0 frame:0
           TX packets:14591 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1
           RX bytes:4115174 (3.0 MiB)  TX bytes:4115174 (3.9 MiB)

IP-адрес маршрутизатора (ожидаемый шлюз по умолчанию)

root@server:/# ping 192.168.xxx.xxx
connect: Network is unreachable

Содержимое /etc /hosts

root@server:~# cat /etc/hosts
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
127.0.0.1 localhost
127.0.1.1 server.local server

# The following lines are desirable for IPv6 capable hosts
::1      ip6-localhost  ip6-loopback    
fe00::0  ip6-localnet
ff00::0  ip6-localnet
ff02::1  ip6-allnodes
ff02::2  ip6-allrouters
ff02::3  ip6-allhosts

Содержимое моего файла /etc /network /interfaces:

root@server:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#eth0n network interface
auto eth0 allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
    pre-down ip -6 addr flush dev $IFACE

Содержимое /etc/nsswitch.conf

root@server:/# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the glibc-doc-refence' and info' packages installed, try:
# `info libc "Name Service Switch" for information about this file.

passwd:     compat
group:      compat
shadow:     compat

hosts:      files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:   files

protocols:  db files
services:   db files
ethers:     db files
rpc:        db files

netgroup:   nis

0