Re: Re.: Modem Problem.

From: Moe Trin (ibuprofin_at_painkiller.example.tld)
Date: 03/05/05


Date: Fri, 04 Mar 2005 18:54:01 -0600

In article <20050303200757.67e613e3.nospam@st.com>, nospam@st.com wrote:

>And the final one that I was looking for why ppp hangs.

Would be nice to know what you were referring to - your article does
not have a 'References:' header.

>Here is an entire section of a manual that I found on this one:
>http://tinyurl.com/5hfkq

Well, if I read this correctly, they're talking about putting your
hostname into /etc/hosts. Actually, there would be a LOT of other
symptoms of this, starting when the systems tries to boot. Depending on
your distribution, there is some section of the boot scripts that looks
for a file that tells what your hostname is (in Red Hat and clones, this
is /etc/sysconfig/network). The hang occurs when the system tries to
resolve this name to an address. The correct solution is to make sure
your system knows it's FULL name from this boot file - meaning that the
name has a host and domain section, separated by dots. An example would
be 'localhost.localdomain' or 'www.microsoft.com' (though using a real
name like that could lead to problems if you are not authorized by
the real domain to use it). Then, in /etc/hosts this FULL name should
refer to an IP address. The exception to this is 'localhost.localdomain'
as all resolvers know that localhost really refers to that name. Make sure
that there is only one line per IP address, and that a given hostname only
appears on one line. If you so not have a fixed name (DHCP, or no local
network for example), you can point your hostname at other addresses in
the 127.0.0.0/8 network. All computers know that any host on the
127.x.y.z network refers to itself.

If your system can not resolve the FULL hostname from the /etc/hosts file,
it will attempt to look elsewhere as defined in the /etc/nsswitch.conf and
/etc/host.conf files. If there is one or more nameserver declarations in the
/etc/resolv.conf file, the system will attempt to contact these hosts, and
that is often where the delay occurs. The nameserver has to be reachable NOW
in the boot sequence, not later. Also understand that the resolver will
believe the FIRST answer it gets - even if that answer is "I don't know".
Thus, if you depend on using a nameserver to resolve your name to an address,
EVERY NAMESERVER LISTED must return the "correct" answer.

>Incidentally it came from FreeBSD.

While not wishing to knock the FreeBSD manual, most of it is not applicable
to Linux. They have been using a different type of ppp application since
about 1997 when they stopped using the ANU version at ppp-2.3.6. Many of
the commands and options they use do not exist, or are named differently
from the ANU version used in Linux. In the same way, the version used in
Linux has a fairly large number of options that FreeBSD never heard of.

>This seems to be a very well known, long term existing problem as this
>section seems quite detailed and exists for atleast a few years.

Yes, the problem goes back to the introduction of DNS in the late 1980s.

        Old guy



Relevant Pages

  • 10.1 - resolving hostnames slow for the first time
    ... I have encountered a very strange problem with 10.1 on my laptop. ... 30s or something like this when estabilishing SSH connection etc. ... Sometimes it even takes so long to resolve something, ... the hostname, then the result gets cached and the hostname is resolved ...
    (alt.os.linux.suse)
  • Re: DNS problem on local network
    ... You also have to assign the first nameserver to be _your_ nameserver and not your ISP's. ... Remove domain-name-servers from that list and dhcp wont supply it. ...
    (Debian-User)
  • Re: DNS problem on local network
    ... You also have to assign the first nameserver to be _your_ nameserver and not your ISP's. ... Remove domain-name-servers from that list and dhcp wont supply it. ...
    (Debian-User)
  • RE: bin/22595: telnetd tricked into using arbitrary peer ip (was: telnetd suckage)
    ... >>> Speaking of telnetd sucking, did anyone ever get around to fixing ... It's also great for your logs... ... resolve hostname -> IP2 ...
    (FreeBSD-Security)
  • Re: 16 BIT ERROR - CAN NO-ONE HELP???
    ... you are virtually powerless to resolve this issue. ... >>> can help - I realise I can run the fix each time I boot up but there is ... I've searched for>>> windupdate but thats not the problem. ... >> This installation program will reinstall the missing or corrupt Windows>> XP ...
    (microsoft.public.windowsxp.accessibility)