Home > debian > Setting up network – DNS

Setting up network – DNS

Problem:
I reinstalled my debian system and was not able to browse although I was able to ping other machines on the network. Turned out that my DNS server was not set. I was putting the setting in the DNS section in the Network Connections GUI but clearly I was still doing something wrong.

This is what I would get trying to ping google.

$ ping http://www.google.com
ping: unknown host http://www.google.com

Solution:
1. Installed the resolvconf package.
2. As root, added the following two lines into /etc/resolvconf/resolv.conf.d/tail

nameserver 8.8.8.8
nameserver 8.8.4.4

3. Saved and restarted networking.

That sorted me out.

Source:
http://unix.stackexchange.com/questions/39071/debian-problem-with-dns

Advertisements
Categories: debian Tags: ,
  1. December 16, 2013 at 11:22 am

    Good and short info 🙂 great

    I once wrote a post about setting up DNS with NetworkManager – http://zipizap.wordpress.com/2010/09/04/configure-ubuntu-to-use-opendns-as-the-primary-dns-server/

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: