Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hosts file [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Thu Dec 29, 2005 1:16 am    Post subject: Hosts file [SOLVED] Reply with quote

[quote]Hi guys !

I am having some doubts about some hosts file in the system.
I been reading and testing and because of all that right now i have doubts and am not sure about what is supose to do what .

my main point about this is simple and its all here:
http://accs-net.com/hosts/what_is_hosts.html

and in my system i have:
Code:

host.conf        hosts            hosts.allow            hosts.deny


my questions start here :

what is the difference between /etc/hosts and /etc/networks

i ask this because they seem to do the same and in fact i have the same settings for both.

Code:
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $


Code:

# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/networks,v 1.4 2002/11/18 19:39:22 azarah Exp $
#
# networks      This file describes a number of netname-to-adress
#               mappings for the TCP/IP subsytem. It is mostly
#               used at boot time, when no name servers are running.


i know what /etc/hosts does and what is it for. at least the basic purpose of it.
but why /etc/networks or what's it's use ?

now .. going to the main point... i wanted to set a hosts file to be used like its says here :
http://accs-net.com/hosts/hostsforlinux.html

and i got confused should i set it in /etc/hosts or /etc/hosts.deny
i know if i set it on /etc/hosts that it works and it simple to understand why.
but now i ask whats the reason for hosts.deny i read somewhere (gentoo.wiki i think), that it was to deny sshd access; but then again ... we can set that kind of access on sshd_config and i did try to use hosts.deny to restric sshd access but with no visible result.

so.. my second doubt : what is hosts.deny for and how to use it ?

so ... before i go on with other questions i would like to read from someone that knows more about this.

thanks is advance
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244


Last edited by HeXiLeD on Wed Jan 11, 2006 3:25 am; edited 1 time in total
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Thu Dec 29, 2005 2:26 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-92856.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum