View Single Post
Old 16-12-2011, 17:17   #4
eaman
Senior Member
 
L'Avatar di eaman
 
Iscritto dal: Feb 2002
Messaggi: 2511
Dnsmasq e' una figata per le piccole reti:
- ovviamente fa da dns cache, adattandosi automaticamente al dns che piglia l'eventuale ppp di una adsl o simile
- e' facile molto da configurare
- ti propaga il suo file /etc/host
- ovviamente e' anche un dhcp server, solo che e' piu' facile da configurare
- ti fa da server per il boot da rete: pxe
- ti permette ti 'truccare' tutti i tipi di record del dns: ad esempio gli puoi far propagare con una sola riga di codice un record MX per la posta. Metti caso che domani vuoi imparare a configurare i server di posta e non sai come propagare i record MX nella LAN...

es:
Codice:
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.0.1,192.168.0.38,255.255.255.0,12h
# il routing e' automatico, propaga quello dal server

# IP fissi
dhcp-host=00:11:2f:c6:ee:af,ice,192.168.0.4,infinite

# Interface MTU Option
# 
#    This option specifies the MTU to use on this interface.  The MTU is
#    specified as a 16-bit unsigned integer.  The minimum legal value for
#    the MTU is 68.
# 
#    The code for this option is 26, and its length is 2.
# 
#     Code   Len      MTU
#    +-----+-----+-----+-----+
#    |  26 |  2  |  m1 |  m2 |
#    +-----+-----+-----+-----+
dhcp-option=lan,26,7000

# Set the boot filename and tftpd server name and address
# for BOOTP. You will only need this is you want to
# boot machines over the network.
#dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3
# debian etch one
dhcp-boot=/var/lib/tftpboot/pxelinux.cfg/pxelinux.0,lu,192.168.0.254
enable-tftp
tftp-root=/var/lib/tftpboot
# Fine, 3 righe per impostare un server boot pxe

# Change these lines if you want dnsmasq to serve MX records.

# Return an MX record named "maildomain.com" with target
# servermachine.com and preference 50
mx-host=maildomain.com,servermachine.com,50
E ha un consumo di risorse di sistema ridicolo.
eaman è offline   Rispondi citando il messaggio o parte di esso