Re: dselect and resolving
On Tuesday 12 February 2002 06:43, Michel Loos wrote:
> Em Ter, 2002-02-12 às 00:29, John Cichy escreveu:
> > On Monday 11 February 2002 21:32, Richard Cobbe wrote:
> > > Lo, on Monday, February 11, John Cichy did write:
> > > > Hello all,
> > > >
> > > > It seems the dselect ignores the host file when updating it's lists.
> > > > I have a debian mirror in my DMZ and have added an entry in my hosts
> > > > file to use an internal address to access the mirror, but it seems
> > > > that dselect is ignoring that entry and trying the public address
> > > > instead. Does anyone know how to make dselect look at the hosts file,
> > > > my host.conf has the entry :
> > > >
> > > > order hosts,bind
> > > >
> > > > so I would think that it would resolve to the address in the host
> > > > file.
> > >
> > > I'm not entirely sure how this works, but there's a very good chance
> > > that /etc/nsswitch.conf is more significant than /etc/host.conf. What
> > > does the `hosts' line say from nsswitch.conf?
> > hosts files dns
> > John
> A stupid question are you able to connect with lynx to your virtual host
> Seems your internal router/firewall has problems with name based virtual
I have worked around this problem by by symlinking the debian directory to
the top level host and it now does work. The router/firewall does not have a
problem with name based hosting, It has been working for over a year with no
problems. The problem is I have the firewall blocking DMZ servers from going
out and back in. There is no need to do this.
The problem is that apt is resolving to dns first, if it does not find it
answer, then it looks in the hosts file, so it is ignoring hosts and
Anyway, it is now working.