LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   unable to resolve host in ubuntu 8.04 (https://www.linuxquestions.org/questions/linux-networking-3/unable-to-resolve-host-in-ubuntu-8-04-a-640703/)

pdelcast 05-08-2008 12:50 AM

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

Okie 05-08-2008 06:22 PM

change the name of your PC to localhost

pdelcast 05-09-2008 01:19 AM

tnx alot. i was able to install it

deepumnit 06-20-2008 12:31 AM

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


deepumnit 06-20-2008 12:34 AM

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.

Mr. C. 06-20-2008 01:54 AM

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,

mmorse757 07-25-2008 06:01 PM

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


All times are GMT -5. The time now is 09:08 PM.