[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DNS



On Tue, 18 Aug 1998, Schlomo Schapiro wrote:

> Hi,
> 
> > this will match every host under the .home that doesn't have other entry.
> > I don't think the order of where you put it matters.
> > this will work nicely, if for some reason you misspelled your test.home
> > machine and typed tset.home. isn't that what you wanted?
> 
> No, I wanted it to tell me that tset doesn't exist

So you need more than a cache file. You need a SOA area and put your hosts
in it. Then it won't go out after it if it is not there (resolver returns
FAIL code on gethostbyname()). 

> > if a name does not exist, it means that there is no DNS under it's
> > authority, so it can never be an authoritive answer.
> 
> ?? if my dns is authorative for .home domain, why can't it be sure that
> tset doesn't exist there ?

Because the rule of thumb is 'if you don't know the answer, ask someone'.

Your nameserver must be the 1st one listed in /etc/resolv.conf, and have a
SOA for your domain (not a cache record). If this is true, a query for a
misspelled name under that domain should be answered with an authoritative
FAIL. Also, look at the 'search' option of resolver(5). In other words,
RTFM ;)

You are also saying things like: 'home.fuzz, home.web' etc are causing
outside lookups. This is NORMAL. home.fuzz is under fuzz, not home, and
home.web is under web. There is no cure for this, except spelling them
right.

imho, also RTFM (again !) resolver(3) and take a good look at the options
that can be passed to some functions (RES_*). This will give you an idea
of what goes on underneath. 

Peter