Re: [Vserver] BIND (named) and "lo" interface inside vserver

From: Bernd Petrovitsch <>
Date: Wed 16 Nov 2005 - 10:39:29 GMT
Message-Id: <>

On Wed, 2005-11-16 at 10:23 +0000, Lyn St George wrote:
> On Wed, 16 Nov 2005 10:35:50 +0100, Bernd Petrovitsch wrote:
> >On Wed, 2005-11-16 at 09:14 +0000, Lyn St George wrote:
> >> On Wed, 16 Nov 2005 02:17:30 +0100, Herbert Poetzl wrote:
> >>
> >> >> Please tell if you have a solution?.
> >> >
> >> >just change to your first guest IP in your
> >> >config files, and everything should work fine ...
> >>
> >> I can confirm that it works fine if you do that, ie use an
> >> IP in the named.conf file
> >
> >And add "localhost" as hostname in thwe vserver's /etc/hosts for the
> >eth0 IP address. Then you can use "localhost" as usual (as hostname) and
> >it should word.
> Yes, I've also done that in another vserver running Postfix + amavisd,
> which needs to run on ports 10024 and 10025. But I also take
> note of Herbert P's previous comment to the effect that this may not
> be entirely safe with the curent networking code (or least that is how
> I understood it - I can't find that message now to check). Possibly
> it may be safe enough if done in one vserver, but not in more than one?

I fear we are mixing here two independent things: Hostnames and
1) Your vserver has no "lo" Interface, where resides. If I
understand correctly, there some compatibility hack, that using the
IP-address is mapped transparently to another IP address.
2) The "localhost" entry in /etc/hosts simply maps the hostname
"localhost" not to as in 99.99% of all other setups but
directly to another IP address.
This won't work in 100% of all cases but in 99.9% (at least in my
limited experience with vserver).

If you specify "" you are directly using the IP address, no
address resolving involved.
If you specify "localhost" or "", the host forst
resolves that name through whatever means (/etc/hosts, DNS, ...) and
uses the IP address is gets back from there.


Firmix Software GmbH         
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
Vserver mailing list
Received on Wed Nov 16 10:40:00 2005
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 16 Nov 2005 - 10:40:06 GMT by hypermail 2.1.8