PDA

View Full Version : host file?



Sunnz
19th May 2005, 02:39 PM
In Windows XP I could edit a host file under some where in system32, so that I could add host names to internal IPs and referr to them easily. How do I do this in Linux?

Maners
19th May 2005, 03:29 PM
/etc/hosts I think..

mnisay
19th May 2005, 03:39 PM
yep, linux has /etc/hosts hosts.deny hosts.allow
perhaps you are referring to resolving hosts names? netbios names? window$ names?

linux has also a way of resolving computer names to IPs and vice versa, named please meet Sunnz...

"linux named" to google.

goodluck

jim
19th May 2005, 03:43 PM
in gnome applications--> system settings -->network
enter root password

click the DNS tab
next to hosts is localhost.localdomain
change that to what ever

save changes

reboot

jim
19th May 2005, 04:31 PM
See this flash movie
http://www.fedorajim.homelinux.com/movies/host-name.htm

Sunnz
20th May 2005, 04:57 AM
/etc/hosts I think..
Thanks!


So what are those other one for? host.allow, host.deny, host.*, etc....

mnisay
20th May 2005, 08:52 AM
google is your friend...try www.tldp.org it helps

cheers