Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have lost my /etc/hosts file on SuSE Enterprise 11.3 64 bit. Is there any way to get the original file back?

share|improve this question
How did you manage to lose it? – Karlson Feb 21 '12 at 14:16

Here is a sample default ip v4 & v6 /etc/hosts :

# Loopback devices
# IPv4 localhost
# IPv6
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
share|improve this answer

just rewrite it from scratch. Unless you had lots of modifications, its usually only a few lines. localhost will usually be enough.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.