From owner-freebsd-net  Wed May 10 12:13: 9 2000
Delivered-To: freebsd-net@freebsd.org
Received: from dialup.nacamar.de (authsrv.nacamar.de [194.162.162.197])
	by hub.freebsd.org (Postfix) with SMTP id 7DE2437B8B5
	for <freebsd-net@freebsd.org>; Wed, 10 May 2000 12:13:03 -0700 (PDT)
	(envelope-from oliverko@dialup.nacamar.de)
Received: (qmail 15267 invoked from network); 10 May 2000 19:13:01 -0000
Received: from dialup12-38.access.nacamar.de (HELO p3x2w2) (@62.144.243.38)
  by authsrv.nacamar.de with SMTP; 10 May 2000 19:13:01 -0000
Message-ID: <004301bfbab4$66095330$0201a8c0@p3x2w2>
From: <oliverko@dialup.nacamar.de>
To: <freebsd-net@freebsd.org>
Subject: PLEASE HELP : name resolution doesn't work
Date: Wed, 10 May 2000 21:17:34 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Sender: owner-freebsd-net@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org

Hello,

I've a big problem !

I've a little LAN. One machine (192.168.1.1 : a21064) is configured as a
gateway which forwards requests to my ISP via ppp. I've also Linux
(192.168.1.2 : p3x2lx) and FreeBSD (192.168.1.3 : p3x2fb) on other computers
installed . All works fine if  I use Linux :

<p3x2lx>$ telnet a21064  -> telnet session to gateway established (no dialup
to my ISP)
<p3x2lx>$ telnet p3x2fb  -> telnet session to FreeBSD box established (no
dialup to my ISP)

But if I try this on FreeBSD every time a connection is made to my ISP (I
think FreeBSD tries to ask the nameservers of my ISP). :

<p3x2fb>$ telnet a21064 ->  connection to my ISP, then it establishes the
telnet session to the gateway
<p3x2fb>$ telnet p3x2lx  -> connection to my ISP, then it establishes the
telnet session to the Linux box

I still don't know why because the scripts look similiar to the scripts from
Linux.
FreeBSD scripts:

# /etc/hosts
127.0.0.1        localhost
192.168.1.3    p3x2fb.network.de     .
192.168.1.1    a21064.network.de   a21064
192.168.1.2    p3x2lx.network.de     p3x2lx

# /etc/host.conf
hosts
bind

# /etc/resolv.conf
domain network.de
nameserver 195.185.185.195        # first nameserver of my ISP
nameserver 194.162.141.17          # second nameserver of my ISP
search network.de nacamar.de        # my private domain and ISP domain

I can't understand it - FreeBSD should first look into /etc/hosts and find
a21064 and p3x2lx (the IPs belong to the network segment) and shouldn't ask
the nameservers from my ISP. Why aren't the names resolved? The nameservers
should only asked if FreeBSD can't find the hostname in /etc/hosts ?!

Please help!!!!

with regards,
Oliver




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