Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Nov 1998 11:06:47 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Dmitry Valdov <dv@dv.ru>
Cc:        Brian Somers <brian@Awfulhak.org>, Brian Somers <brian@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) 
Message-ID:  <199811151106.LAA09096@woof.lan.awfulhak.org>
In-Reply-To: Your message of "Sun, 15 Nov 1998 09:29:01 %2B0300." <Pine.BSF.3.95q.981115091659.5678D-100000@xkis.kis.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hmmm. I don't did anything with my 'hostname'. It valid.. 
> I think, I understand the problem. Look here:
> If default route exists and connection isn't established than gethostbyname
> () trying to get host by name via DNS server which isn't here. 
> I think You should do anything with it. Please don't advice me to insert my
> hostname to /etc/hosts and set 'hosts' first in /etc/host.conf just because
> FreeBSD has default with 'bind' prior to 'hosts'. 
> For what do You want to call function gethostbyname ()? May be it will
> better to call it after executing ppp.conf to make user able to 'delete!
> default' before gethostbyname () called?

You'll find that a lot of programs will expect gethostname() to work, 
ppp is one of those programs.

If you configure your machine correctly, ppp will behave correctly.  
IMHO, hosts should be before bind in /etc/resolv.conf - if you agree, 
feel free to try to convince someone to change that.  If you don't 
agree, I suggest you configure and run a nameserver.

> On Sat, 14 Nov 1998, Brian Somers wrote:
> 
> > Date: Sat, 14 Nov 1998 00:22:03 +0000
> > From: Brian Somers <brian@Awfulhak.org>
> > To: Dmitry Valdov <dv@dv.ru>
> > Cc: Brian Somers <brian@FreeBSD.ORG>, current@FreeBSD.ORG
> > Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) 
> > 
> > > Hi!
> > > 
> > > 
> > > There is gdb's output:
> > > 
> > > 0x280d7ea4 in _poll ()
> > > (gdb) bt
> > > #0  0x280d7ea4 in _poll ()
> > > #1  0x280f4f11 in res_send ()
> > > #2  0x280f1c57 in res_query ()
> > > #3  0x280f2101 in __res_querydomain ()
> > > #4  0x280f1e55 in res_search ()
> > > #5  0x280eb5c8 in _gethostbydnsname ()
> > > #6  0x280ea23f in gethostbyname2 ()
> > > #7  0x280ea1c3 in gethostbyname ()
> > > #8  0x805cd4e in ipcp_Init (ipcp=0x8078714, bundle=0x80785f0, l=0x80a3000,
> > >     parent=0x8078648) at ipcp.c:359
> > > #9  0x804c1d1 in bundle_Create (prefix=0x807366d "/dev/tun", type=1,
> > >     argv=0xefbfdc44) at bundle.c:858
> > > #10 0x8061df5 in main (argc=1, argv=0xefbfdc44) at main.c:324
> > > #11 0x804a34d in _start ()
> > 
> > The gethostbyname() is the only thing I know in ppp that causes ppp 
> > to hang - hence my previous message:
> > 
> > [.....]
> > > ---------- Forwarded message ----------
> > > Date: Thu, 12 Nov 1998 01:08:05 +0000
> > > From: Brian Somers <brian@Awfulhak.org>
> > > To: Dmitry Valdov <dv@dv.ru>
> > > Cc: Brian Somers <brian@FreeBSD.ORG>, current@FreeBSD.ORG
> > > Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) 
> > > 
> > > Are you doing anything funny with ``hostname'' on your machine ?
> > > The only reports I've heard where ppp hangs at startup is when your 
> > > ``hostname'' won't resolve (see http://www.FreeBSD.org/FAQ/userppp.html).
> > > 
> > > If this isn't the problem, I'd appreciate if you could build ppp with 
> > > -g and when it hangs, run ``gdb -p whatever'' and do a ``bt''.
> > [.....]
> > 
> > This is what's causing the problem here.

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811151106.LAA09096>