[UPDATED]sick and tired of freebsd resolving problems

Olaf Hoyer ohoyer at ohoyer.de
Sat Aug 28 07:13:45 PDT 2004


On Thu, 26 Aug 2004, Jorge Mario G. wrote:
> > > > the laptop (Linux/FreeBSD) has the same hosts
> > file
> > > > and linux can ping to the outside world ALWAYS.
> > > > so can do it the Windows boxes.

> > > > somthing like this
> > > > icmp echo request freebsd.org (my DNS servers)
> > here
> > > > then it tries freebsd.foodamain.org
> > > >
> > > > then after like 2 mins I get
> > > >
> > > > coulnt lookup host
> > > > or something like that

> here are the actual files
>
> ########### resolv.conf############
> nameserver 200.13.224.8
> nameserver 200.75.78.78
> ################################
>
> ############3 host ###############
> 127.0.0.1               localhost
> localhost.mosca.linopryne.com
> 192.168.0.254           mosca mosca.linopryne.com
> 192.168.0.1             a a.linopryne.com
> 192.168.0.2             b b.linopryne.com
> 192.168.0.10            diana diana.linopryne.com
> ######################################333
>
> diana is using those DNS server and is working ok
>
> mosca is the conflicting machine
>
> a is the gateway
> b is teh WIFI AP

Hi!

Well, to clarify a bit:

You have diana and mosca, both workstations, which you are logged on.
on mosca (the FBSD box) you have above /etc/resolv.conf.

So when you are also having problems to connect to the outside world,
then I suggest you check the following things in order:

on Mosca:
netstat -rn	#check if mosca really has a default route via the
gateway to outside world
ping 66.94.230.46	# thats one of the IPs from yahoo.com
ping www.yahoo.com	# check if DNS actually does something

-------------
When we have come until here without failures, then your inet connection
is functional and running, and we have to debug the local setup.

Please do these commands, and paste/post the _full_ output especially
the part about the icmp replies with ping.

BTW: host/nslookup use different routines for resolving Names, they
directly use DNS and will not look into files, applications like ping,
ssh etc. will do name lookup via the gethostbyname(3) or getaddrinfo(3)
syscalls, that include looking up the /etc/hosts file.

so a : nslookup diana    will not bring you a correct answer.

HTH
Olaf

-- 
Olaf Hoyer        ohoyer at ohoyer.de
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)


More information about the freebsd-questions mailing list