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 127.0.0.1 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 127.0.0.1 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 IP-Adresses. 1) Your vserver has no "lo" Interface, where 127.0.0.1/8 resides. If I understand correctly, there some compatibility hack, that using the IP-address 127.0.0.1 is mapped transparently to another IP address. 2) The "localhost" entry in /etc/hosts simply maps the hostname "localhost" not to 127.0.0.1 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 "127.0.0.1" you are directly using the IP address, no address resolving involved. If you specify "localhost" or "hostname.example.com", the host forst resolves that name through whatever means (/etc/hosts, DNS, ...) and uses the IP address is gets back from there. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver