Actually as someone else quite correctly pointed out, it is your resolver that
looks in the host.conf file to determine whether to look in the hosts file
first or whether to consult named : named looks in resolv.conf to determine
where the nameservers are. If the resolver is told to look in the hosts file
first and and finds what it needs there, then named will not be consulted. If
named has to be consulted then named will trigger diald in its attempt
to contact the nameserver (assuming that you have one or more listed in
resolv.conf).
If you want the local name resolver to consult the hosts file first and then
used named, make sure there is a line in the /etc/host.conf file like this;
order hosts bind
Then in the /etc/hosts file make sure that all the local hosts are listed and
also make sure that you have created a bogus listing for the sl0 interface that
diald creates. When you run diald, confirm with ifconfig to see what you
have set the IP address of the sl0 interface to be (i'll assume it's
192.168.1.10) and then add a line to the hosts file that reads;
192.168.1.10 bogushost
Use whatever IP address you used, and use whatever bogus hostname you like.
I have found that when I set my system up in this way that sendmail would no
longer trigger diald. There are other ways that I have seen explained but
they all break normal routing in some way - however if someone can show another
approach that keeps everything working the way it's supposed to, please do so.
alex
On Thu, 13 Jan 2000, R Church wrote:
> At 09:29 10/01/2000 -0500, [EMAIL PROTECTED] wrote:
>
> > > ... To handle lookups for local hosts, you should run named and force
> > > named to look in the hosts file before trying other nameservers.
>
> I have recently setup diald and ip masquerading on my system. When I telnet
> to the Linux system it dials out to the internet before logging me in. I
> believe this has to do with the named and hosts issue described above.
>
> How does one setup named to lookin the /etc/hosts file first?
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]