Ubuntu practically unusable without internet

Asked by bob4321

When disconneted from the internet, every start of an application delays for more than 30 seconds. Where does this delay come from, and how can it be removed? (Ubuntu 7.10 AMD64)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
sipiatti (sipiatti) said :
#1

As I remember it is related to name resolving, so it wait for the DNS timeout.
If it is so it can be avoid with a local DNS service on your machine or maybe
it is enough to correctly indicate your hostname in /etc/hosts file.

In a terminal type command hostname then press enter. It answers your current hostname.
Create a line in your /etc/hosts file like this:
127.0.0.1 your_hostname
to edit the /etc/hosts you need root privileges so use sudo nano /etc/hosts or gksu gedit /etc/hosts
It is better to put the aboves in the first line of the hosts file.

Make these changes then reboot for sure.
Try it if it helped.

Revision history for this message
bob4321 (kissme-deactivatedaccount) said :
#2

Thanks for the answer. It solved my problem. The hosts file had already an
entry for <host>.<domain>, but not for <host> only. After adding that,
everything was fine.

I still wonder whether this isn't a bug of the Ubuntu installation program,
and whether it could be fixed so that the entry is created automatically?

Revision history for this message
sipiatti (sipiatti) said :
#3

We can say it is a bug hope the developers will fix in the next release upcoming in April.

Can you help with this problem?

Provide an answer of your own, or ask bob4321 for more information if necessary.

To post a message you must log in.