Re: dselect and resolving
Em Ter, 2002-02-12 às 00:32, Richard Cobbe escreveu:
> 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?
I am not sure this is the problem.
Since when using mirror you get an error, you will get the same error by
using the enterprise.com from your hosts file, since the name to IP
resolution is done locally the result will be exactly the same. After
getting that error apt-get will assume wrong address and begin solving
using the second option: dns and connect to the public server.
Anyway since you can't get in your server with the name mirror: you will
not be able to use it. Put the server back in the inside zone and not in
the DMZ.
Michel.
Reply to: