Dnsmasq: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 4: | Zeile 4: | ||
=DHCP und Nameserver für diese Karte= | =DHCP und Nameserver für diese Karte= | ||
| − | * vi dnsmasq.conf | + | *vi /etc/dnsmasq.conf |
interface=wlan0 | interface=wlan0 | ||
| − | dhcp-range=192.168. | + | dhcp-range=192.168.178.2, 192.168.178.30, 255.255.255.0, 12h |
| − | dhcp-option=3, 192.168. | + | dhcp-option=3, 192.168.178.1 |
| − | dhcp-option=6, 192.168. | + | dhcp-option=6, 192.168.178.1 |
server=8.8.8.8 | server=8.8.8.8 | ||
log-queries | log-queries | ||
Version vom 7. März 2023, 14:33 Uhr
Installation
- apt update
- apt install hostapd dnsmasq
DHCP und Nameserver für diese Karte
- vi /etc/dnsmasq.conf
interface=wlan0 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 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