2

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

  • How did you manage to lose it? – Karlson Feb 21 '12 at 14:16
2

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

# Loopback devices
# IPv4
127.0.0.1 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
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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