PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Newbie Basic Networking. Using Hostnames
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Newbie Basic Networking. Using Hostnames

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2008, 02h10   #1
Oscar Corte
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Newbie Basic Networking. Using Hostnames


I recently installed Debian at two home PC’s. Both are connected to an ADSL modem through which Internet is accessed.

All network configurations were made by Debian at installation time. I’m able to ping each machine from each other but by its IP address. However, Idon't get any results if I ping by the use of host names.

What am I missing?


Thanks in adbvance an regards
__________________________________________________ _______________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/lau...=wlmailtagline
  Réponse avec citation
Vieux 09/05/2008, 03h40   #2
NN_il_Confusionario
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Newbie Basic Networking. Using Hostnames

On Fri, May 09, 2008 at 01:04:45AM +0000, Oscar Corte wrote:
>I'm able to ping each machine from each other but by its IP address.
> However, I don't get any results if I ping by the use of host names.
> What am I missing?


a definition of the two "ip fqdn name" lines in /etc/hosts on both
machines

(and also word wrapping in the e-mail)

--
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 09/05/2008, 03h40   #3
Douglas A. Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Newbie Basic Networking. Using Hostnames

On Fri, May 09, 2008 at 01:04:45AM +0000, Oscar Corte wrote:
>
> I recently installed Debian at two home PC?s. Both are connected to an
> ADSL modem through which Internet is accessed.
>
> All network configurations were made by Debian at installation time.
> I?m able to ping each machine from each other but by its IP address.
> However, I don't get any results if I ping by the use of host names.
>
> What am I missing?


You are missing some type of name service or correct /etc/hosts files.

If both boxes are connected directly to the ADSL modem, then presumably
both boxes are getting an IP via DHCP from the modem. The problem with
this setup is that the IP numbers are not known in advance so you can't
tell one box the other boxes' IP number.

Here's how I think you have it set up:

ADSL modem
| |
DHCP DHCP
| |
box1 box2


If it were me, here's how I'd do it. You will need a extra network
card, but they're cheap:


ADSL modem
|
DHCP
|
eth0 DHCP
box1
e.g. eth1 192.168.1.1
| (consider putting a simple switch here
| for future upgrades. This network would
| have static IP numbers, unless you want
| to run your own DHCP.
box2


To handle DNS service for your network, the easiest solution is to put
the host/IP info in /etc/hosts on box1 and install the dnsmasq package
on box1. On box 2, you would list box1 as the nameserver. Dnsmasq will
serve dns requests from your network, resolving names as does box1
itself: first from /etc/hosts, second from any nameserver lines that
point to the ADSL modem or your ISP.

If your home network gets large, dynamic (hosts coming and going), or
just changes frequently, you may wish to set up dnsmasq to also be a
DHCP server. However, I wouldn't worry about that right now.

This is how I have my network setup. I'm on dialup but its the same
thing.

The problem with having all boxes connected directly to the modem is
that you don't controll the modem. It also doesn't address your need
for a firewall. If you want a firewall, with the new setup, you would
configure box1 as the firewall with e.g. shorewall. Read the
shorewall-doc package for further details.

DNS can be very, very, complex but for a small home network, fixed IP in
/etc/hosts with dnsmasq is about as simple as it gets.

I hope this s.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h23.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11011 seconds with 11 queries