LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


hi,

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 http://packages.medibuntu.org/medibuntu-key.gpg -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
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
change the name of your PC to localhost
 
Old 05-09-2008, 01:19 AM   #3
pdelcast
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
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Hi,

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

--2008-06-20 10:59:37--  ftp://ftp.slackware.pl/pub/gnomeslackbuild/gsb/gsb-2.22/packages/tools/slapt-get-0.9.12d-i586-7gsb.tgz
           => `/tmp/slapt-get-0.9.12d-i586-7gsb.tgz'
Resolving ftp.slackware.pl... failed: Temporary failure in name resolution.
wget: unable to resolve host address `ftp.slackware.pl'
slapt-get download md5's don't match
 
Old 06-20-2008, 12:34 AM   #5
deepumnit
Member
 
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: 59
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. host1.example.com). 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:

nameserver 192.168.0.1

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

Test nameserver lookups with dig or nslookup:

Code:
$ nslookup apple.com
Server:         192.168.3.200
Address:        192.168.3.200#53

Non-authoritative answer:
Name:   apple.com
Address: 17.149.160.49

$ dig +noall +answer apple.com     
apple.com.              86369   IN      A       17.149.160.49
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
mmorse757
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> 127.0.0.1



Michael
 
  


Reply


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


All times are GMT -5. The time now is 03:17 PM.

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