Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 21:17:34 +0200
From:      <oliverko@dialup.nacamar.de>
To:        <freebsd-net@freebsd.org>
Subject:   PLEASE HELP : name resolution doesn't work
Message-ID:  <004301bfbab4$66095330$0201a8c0@p3x2w2>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004301bfbab4$66095330$0201a8c0>