Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-08-2008, 12:50 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 12

Rep: Reputation: 0
unable to resolve host in ubuntu 8.04


i am experiencing a unable to resolve host problem in installing some application. i have a static ip. no problem with the internet browsing.

if i type in the terminal the error occur.

some example:

wget -q -o- | sudo apt-key add -&& sudo apt-get update

and even installing the adobe reader

sudo apt-get install acroread

anyone would give a solution with this matter, i wasnt able to install any application with this error
Old 05-08-2008, 06:22 PM   #2
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
change the name of your PC to localhost
Old 05-09-2008, 01:19 AM   #3
LQ Newbie
Registered: Apr 2008
Posts: 12

Original Poster
Rep: Reputation: 0
tnx alot. i was able to install it
Old 06-20-2008, 12:31 AM   #4
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31

I got this error when I was trying to install Gnome SlackBuild:
slapt-get not found. Downloading and installing...

--2008-06-20 10:59:37--
           => `/tmp/slapt-get-0.9.12d-i586-7gsb.tgz'
Resolving failed: Temporary failure in name resolution.
wget: unable to resolve host address `'
slapt-get download md5's don't match
Old 06-20-2008, 12:34 AM   #5
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
I changed the variable 'search' in /etc/resolv.conf file to 'localhost'. Is this the way? I think this is the domain.

Please tell what to do.
Old 06-20-2008, 01:54 AM   #6
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
No, don't change your search line in resolv.conf.

The search and domain directives help your system resolve names that are not fully qualified (eg. host1 vs. This is useful when you are referring to machines in your own LAN, but is unnecessary for resolving names in general.

You need valid nameserver directives in your resolv.conf. Place the most reliable nameserver first. Eg:


This nameserver IP address will be given to you by your ISP, network admin, or other provider.

Test nameserver lookups with dig or nslookup:

$ nslookup

Non-authoritative answer:

$ dig +noall +answer              86369   IN      A
If the nameserver you are using is problematic or unreliable, find and use a reliable one. If you need more help, describe what nameserver you are using,
Old 07-25-2008, 06:01 PM   #7
LQ Newbie
Registered: Feb 2006
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Using your hosts file.

Instead of changing the name of your computer to local host,
edit your /etc/hosts file. Add the following line to your /etc/hosts file:

<name of your computer>



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
Unable to resolve host name MistaT Linux - Server 5 07-16-2007 04:22 PM
Check if computer can resolve host names MicahCarrick Programming 3 01-02-2007 10:48 PM
DHCP not able to resolve host rmcastil Linux - Newbie 8 08-10-2005 06:31 AM
Dialup connection sometimes cannot resolve host azebuski Linux - Newbie 1 03-07-2004 02:28 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration