RE: [Nolug] DNS question

From: Mark D Robinson <mrobinso_at_fpkc.com>
Date: Tue, 12 Aug 2003 19:31:19 -0500
Message-Id: <200308122336.SAA23182@hermod.fpkc.com>

Quick answer - if all you're after is "ping hostname.domain.com", just add a period after it "ping hostname.domain.com." so it won't append your domain.

Otherwise, what are you trying to ping? Is "ANYTHING" just a hostname (no periods) or host.domain ? Is "MYDOMAIN.com" a registered domain (and are you really using mydomain.com or is that a "fake" domain to hide your real one?)? If so, there may be a wildcard DNS record for the domain (if you're really using mydomain.com, there is a wildcard record).

What version of BIND is installed? Different versions of the resolver handle things a little differently (what to append, etc.).

Do you have the HOSTALIASES and/or LOCALDOMAIN environment variables set? If so, to what?

Check the resolv.conf manpage. I know OpenBSD 3.3 has an option "lookup" that controls whether the resolver checks the hosts file first or BIND first (this may actually depend more on the BIND version - OpenBSD 3.3 includes BIND 9.2.2).

Mark Robinson

> I am not running named, getting DNS from my ISP. I can't figure where
> the * records could be. Here is a sample of my hosts file:
>
> ::1 localhost.MYDOMAIN.com localhost
> 127.0.0.1 localhost.MYDOMAIN.com localhost
> EXTERNAL.IP.ADD.RESS web.MYDOMAIN.com web
> EXTERNAL.IP.ADD.RESS web.MYDOMAIN.com.
> 10.10.10.254 web.MYDOMAIN.com web
> 10.10.10.254 web.MYDOMAIN.com.
>
> 10.10.10.10 ANOTHERSERVER.MYDOMAIN.com ANOTHERSERVER
> 10.10.10.20 workstation1.MYDOMAIN.com
> 10.10.10.30 workstation2.MYDOMAIN.com
>
> I am not sure what the first ::1 is, just got it from the default I
> think. Also, I have things listed twice... Not sure why I did that.
> May have something to do with some specific with a . After them... Could
> this be part of the prob?
>
___________________
Nolug mailing list
nolug@nolug.org
Received on 08/12/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST