Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers 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
share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

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.