Dnsmasq

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Installation

  • apt update
  • apt install hostapd dnsmasq

DHCP und Nameserver für diese Karte

  • vi dnsmasq.conf
interface=wlan0
bind-interfaces
dhcp-range=192.168.178.2,192.168.178.30,255.255.255.0,12h
dhcp-option=3,192.168.178.1
dhcp-option=6,192.168.178.1
server=8.8.8.8
log-queries 
log-dhcp

Bedeutung

  • interface: Schnittstelle
  • dhcp-range: IP Range und Ablaufzeit
  • dhcp-option=3: Gateway IP
  • dhcp-option=6: DNS Server
  • server: DNS server’s address
  • log-queries: Log the results of DNS queries handled by dnsmasq.
  • log-dhcp: Log all the options sent to DHCP clients and the tags used to determine thitt
  • listen-address: Links the DHCP to the local IP address which is 127.0.0.1.

Wir starten den DNSMASQ

  • dnsmasq -C dnsmasq.conf -d