Hi! Intercodes wrote: > > My nssswitch.conf > ---------------------------------- > passwd: compat > group: compat > > hosts: files dns > networks: files dns > > services: files > protocols: files > rpc: files > ethers: files > netmasks: files > netgroup: files > publickey: files > > bootparams: files > automount: files nis > aliases: files > > > --------------------------------------------------------------------------------------------- >
The system looks first in the /etc/hosts-File and when there is no match found, the configured DNS would be requested. > > >This should resolve your own local hostname! > >The socket.gethostbyname () is a call into a shared object of > Python and this >would use ( So think I ) the standard-Libraries for > resolution. > > > You totally lost me here :) > ----------------------------------------------------------------------------- > > > >Is "linux" a valid hostname? > >Does "ping linux" succeed. > > > I suppose not. > > linux:/srv/ # ping linux > ping: unknown host linux > -------------------------------------------------------------------------------------- Here, I think is a strange problem. You can not resolve your own hostname. Is there no entry in /etc/hosts for linux with the IP-Address of your server? If not, try to insert such an entry. HTH Ewald _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor