"localhost" zone: what should we do?

Mariano Cunietti mcunietti at enter.it
Tue Mar 15 11:08:23 UTC 2005


Hi all,
we have some problems with a PHP function (ftp_connect), which requires
a hostname as an argument. This function looks up our DNS for an address
resolution of "localhost", instead of using his own localhost. We
checked out /etc/nsswitch.con file and everything looks OK.

We need to know which is the *best practice* about creating "localhost"
entries in a named.conf and in a zone file. We already have a 127.
inverse zone, but we never created a "localhost" zone and file.
Should we configure a localhost A record per zone (localhost IN A
127.0.0.1) or a root localhost zone?
Everything ran smoothly until today (since 1998).

TIA

Mariano

-------------------------
Mariano Cunietti
System Administrator
Enter S.r.l.
Via  Stefanardo da Vimercate, 28
20128 - Milano - Italy
Tel.  +39 02 25514319
Fax   +39 02 25514303
mcunietti at enter.it
www.enter.it - www.enterpoint.it
---------------------------
Gruppo Y2K - www.gruppoy2k.it



More information about the bind-users mailing list