By ab.islah

2018-01-16 02:33:42 8 Comments

I have a debian 8 server running a ruby application, we had a problem with the application so we restarted the server and since then i can't resolve any IP adresse or DNS (beside localhost and the server's own public IP) here is what i did so far:

  • Tried to ping multiple IPs and DNS but all the packets are lost and no packets received
  • Restarted the networking service (both with sudo service networking restart and sudo /etc/init.d/networking restart
  • Tried Traceroute but all i've got is multiple '*'
  • flushed iptables
  • restarted the server again

Someone had the same problem before ? any solutions or suggestions?

Thank you.


here is result for sudo cat /etc/resolv.conf :

I've tried to change the nameservers to and

and here is the results for cat /etc/network/interfaces:

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

results for cat /etc/hosts :   localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

results for ip a (please note that i changed some numbers to X, Y and Z since i don't know the security implications of giving out the full IPs and mac adresses) :

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether Y:Y:Y:1b:41:55 brd ff:ff:ff:ff:ff:ff
    inet X.X.214.212/25 brd X.X.214.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 Z::Z:Z:fe1b:4155/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1:  mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether Y:Y:Y:1b:41:56 brd ff:ff:ff:ff:ff:ff

results for ip r :

default via X.X.214.129 dev eth0 
X.X.214.128/25 dev eth0  proto kernel  scope link  src X.X.214.212 

I am sorry for pasting all these infos, i am not very good at networking or linux administration and been troubleshooting this for the last two days without any luck.

Thank you.


@telcoM 2018-01-16 21:13:46

Your /etc/network/interfaces indicates you're using DHCP, and the eth0 interface has an IP address and a default gateway is defined. Yet the traceroute fails.

I'd suggest contacting your network administrator (or possibly the service provider): you cannot troubleshoot this much further alone. It looks like you have some local connectivity, but maybe no connection beyond your local network segment. In other words, the device that is acting as your default gateway may have failed, or it may be rejecting your traffic for some reason.

@Nasir Riley 2018-01-16 04:04:28

Check your /etc/network/interfaces file and make sure that the IP info is correct in the primary network interface section. If you have a static IP which I'm assuming you do as this is a server, your IP, subnet mask, gateway, etc should be there.

Also, check your /etc/resolve.conf file and make sure that DNS info is available and correct and make sure that the /etc/hosts file has the static ip and the FQDN if it applies

Lastly, make sure that your network service is enabled and running.

@multithr3at3d 2018-01-16 05:26:37

The first part does not apply to Debian.

@Nasir Riley 2018-01-16 11:10:25

I've corrected the mistake. I've gotten so used to using RHEL that it slipped my mind that the config files are in different places in the Debian family.

@multithr3at3d 2018-01-16 15:44:54

You were correct before about /etc/resolv.conf

@Nasir Riley 2018-01-16 17:05:53

You're right. I changed it back and left in the part regarding /etc/hosts.

@ab.islah 2018-01-16 19:28:17

I edited my post with all the infos, sorry for pasting all these infos but i don't know what's the correct config for all these files, thanks for your help

Related Questions

Sponsored Content

0 Answered Questions

Network issue of VMware client

1 Answered Questions

0 Answered Questions

Wifi does not work in laptop 1 when laptop 2 is connected

0 Answered Questions

Can't figure out why Ethernet packets are ignored

1 Answered Questions

[SOLVED] Can't enable net.ipv6.conf.eth0.autoconf

1 Answered Questions

[SOLVED] How do I fix Debian that refuses to connect to the internet in VirtualBox?

1 Answered Questions

1 Answered Questions

How to create permanent ip alias belonging to different subnets in Centos

0 Answered Questions

Network connectivity trouble to non-routing multi-homed hosts?

1 Answered Questions

Change ip addr label in Linux

  • 2013-05-20 22:48:56
  • spendyala
  • 2606 View
  • 4 Score
  • 1 Answer
  • Tags:   linux networking

Sponsored Content