31Okt/081
dnsmasq – DNS / DHCP-Server
Installation
Das Programm ist in den Paketquellen enthalten.
sudo apt-get update
sudo apt-get install dnsmasq
Konfiguration
Dnsmasq greift auf die /etc/hosts zurück.
sudo nano /etc/hosts
# = IP = = Domainname = = Rechnername = 127.0.0.1 localhost 127.0.1.1 mini.wg.local mini 192.168.0.1 router.wg.local router
Für den DHCP-Server muss noch folgende Datei angepasst werden.
sudo nano /etc/dnsmasq.conf
# 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.50,192.168.0.150,24h # Always give the host with ethernet address 00:1D:92:64:8B:2E # the name cnlpete and IP address 192.168.0.4 and infinite lease dhcp-host=00:1D:92:64:8B:2E,cnlpete,192.168.0.4,infinite # Override the default route supplied by dnsmasq, which assumes the # router is the same machine as the one running dnsmasq. dhcp-option=3,192.168.0.1










Oktober 24th, 2009
Sieht einfach aus…