Dnsmasq: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Installation= *apt update *apt install hostapd dnsmasq =DHCP und Nameserver für diese Karte= * vi dnsmasq.conf interface=wlan0 dhcp-range=192.168.1.2, 19…“)
 
Zeile 23: Zeile 23:
 
*log-dhcp: Log all the options sent to DHCP clients and the tags used to determine thitt
 
*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.
 
*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

Version vom 7. März 2023, 14:31 Uhr

Installation

  • apt update
  • apt install hostapd dnsmasq

DHCP und Nameserver für diese Karte

  • vi dnsmasq.conf
interface=wlan0
dhcp-range=192.168.1.2, 192.168.1.30, 255.255.255.0, 12h
dhcp-option=3, 192.168.1.1
dhcp-option=6, 192.168.1.1
server=8.8.8.8
log-queries
log-dhcp
listen-address=127.0.0.1

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