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 |
change the name of your PC to localhost
|
tnx alot. i was able to install it
|
Hi,
I got this error when I was trying to install Gnome SlackBuild: Code:
|
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. |
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 |
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. |