Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Does anyone have the original.. Default Hosts File, Resolve File.. and networks file?

Please someone help me get these back to normal so I can put up a web-server. I'm tired, just to set up a web-server.

share|improve this question

Issueing dpkg-reconfigure -a on the shell will reconfigure most of your system. This will recover most of the config files as well. Files about your network and your nameserver are not really generic, so you should rather use the ones fitting to your setup and not someone else's.

However, here is are a generalization of my config files..


 # this nameserver is running by Google.
 # Change IP to your local router or ISP's dns server for improved privacy(disputed)

/etc/hosts   localhost.localdomain   localhost
::1 localhost6.localdomain6 localhost6

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


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# DHCP use
# comment out the following line to use static IP settings

auto eth0
iface eth0 inet dhcp

# static IP use. uncomment to use
#iface eth0 inet static
#    address
#    netmask
#    network
#    broadcast
#    gateway
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.