Re: DNS lookup delays
From: Michael Grant (usenet-poster_at_Michael-Grant.me.uk)
Date: 10/04/03
- Next message: ramin: "Help please: Sapphire Atlantis Radeon 9800 not working with X 4.3.0"
- Previous message: Ken Prox: "Re: install QuickCam on RHL 9"
- In reply to: Tim: "Re: DNS lookup delays"
- Next in thread: Michael Grant: "Re: DNS lookup delays"
- Reply: Michael Grant: "Re: DNS lookup delays"
- Reply: Tim: "Re: DNS lookup delays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 04 Oct 2003 19:46:30 GMT
Tim <admin@sheerhell.lan> wrote:
> is "web browsing" the same for local served page and internet pages?
> What names are you having trouble resolving, local or internet?
Aside from the fact I'm not running a webserver locally, there is no
difference in trying (and failing) to access http://localhost and
anywhere on the Internet (i.e. it's instant for Mozilla and delayed
for links).
> I've just looked back through the thread, and noticed something that I
> missed (your hosts file). I'm not sure whether I have all posts to this
> thread, but it looks a bit odd.
[snip explanation]
I'd shuffled the lines about a bit to get them to look more like the
machines at work. I've tried reordering them so the first line is now:
127.0.0.1 localhost.localdomain localhost luminiferous luminiferous.aethernet
and the only difference it made was to turn the default name (used in
my prompt into "localhost%", so I turned it back[1].
> Your machine's hostname should be something that it can resolve by
> itself (i.e. not needing your ISPs name server). Though, that's not
> feasible if it's trying to resolve an internet registered name, to a
> numerical IP address that changes.
>
> What is your network topology? Do you have NICs? Do you have a LAN, or
> is this just one machine? How do you connect to the net (dial-up, or
> ethernet)? What's your machine's hostname.
This is a single machine connected via Ethernet to my housemate's
broadband router[0], which is connected to the Internet via ADSL. The
machine has a dynamic IP address allocated by the ISP; I call it
luminiferous.aethernet as you have seen[1][2] but, obviously, don't
expect anything outside this machine to recognise that name.
I just had a hunch and tried firing up my desktop (rarely used, as
it's old and slow and doesn't have an Ethernet card), and it can
access the address localhost immediately. So I tried pulling out my
Ethernet PC card on luminiferous, and lo and behold it too could
access localhost immediately. I plugged the card back in, and the
ten-second delay reappears. Does this give you (or anyone else) any
leads?
The Ethernet card of my housemate's I'm using[3] says "Accton" and
"146133-022" on it. dmesg reports:
eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:00:E8:3A:C2:B7
/var/log/messages further says:
Oct 4 20:18:21 luminiferous cardmgr[769]: socket 0: Melco LPC2-T Ethernet
Another alternative has just struck me: Do you think the firewall on
the broadband router might be the cause of my problems?
[0] Which may not be a _router_ per se but just a little hub.
[1] Because I don't like a "(localhost) %" prompt.
[2] And because I couldn't get my printer to work without the machine
having a FQDN, for some reason.
[3] I don't use the Psion Gold Card I "inherited" with the machine (a
cast-off from my father), as I couldn't get it to work under Linux.
>>> Do you have your own domain name server, or continual access to another
>>> DNS server that can resolve the address for your mail server.
>
>> The latter; /etc/resolv.conf is automatically generated on startup and
>> populated with my ISP's nameservers (the first of which, I have just
>> discovered on examination after looking at their ping packet return
>> times, though it may not be germane to my problem, is one hop away by
>> traceroute, and the second five).
>
> Unless your machines hostname is a registered domain name, then your
> ISPs domain name servers aren't going to help you (they're not going to
> help you with localhost addresses, either). For local names, you need
> to resolve them locally (via the hosts file, or your own DNS server).
> For most things, the hosts file is fine, but some things (e.g. the Squid
> proxy server on my system) need a DNS server.
I don't understand this. Name lookup (other than in /etc/hosts) _is_
done by my ISP; as I just proved to myself by temporarily breaking the
IP addresses /etc/resolv.conf. What do you mean?
>>> You might also have an issue with the hostname for your computer not
>>> matching the hostname that's been configured into your mailserver, and
>>> that hostname not being resolvable by your own TCP/IP stack.
>
>> Doubt it, as this problem is not specific to mail delivery but also
>> occurs with telnet and FTP. The question is, what's the magic thing
>> that mozilla and konqueror are doing to bypass this problem?
>
> More information is needed about your system. Another thing that's not
> too clear, is whether you're trying to use a mail server running on your
> own system, or your ISP's mail server.
For outgoing email, the ISP's mail server; for incoming mail sendmail
running locally.
Thanks once again for your help,
Michael
-------------------< Mchl.Grnt@luminiferous.aethernet >-----------------------
>From the Dictionary of M. Grant Misspelling Neologisms: | Roadrunner@
Equinamity: The state of being as friendly as a horse. | Michael-Grant.me.uk
-------------------< http://www.michael-grant.me.uk/ >------------------------
- Next message: ramin: "Help please: Sapphire Atlantis Radeon 9800 not working with X 4.3.0"
- Previous message: Ken Prox: "Re: install QuickCam on RHL 9"
- In reply to: Tim: "Re: DNS lookup delays"
- Next in thread: Michael Grant: "Re: DNS lookup delays"
- Reply: Michael Grant: "Re: DNS lookup delays"
- Reply: Tim: "Re: DNS lookup delays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|