You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# /etc/NetworkManager/dnsmasq.d/01-DNS-example-lan.conf
# This file sets up DNS for the private local net domain example.lan
local=/example.lan/
# file where to find the list of IP - hostname mapping
addn-hosts=/etc/dnsmasq.hosts
domain-needed
bogus-priv
# Automatically add <domain> to simple names in a hosts-file.
expand-hosts
# interfaces to listen on
interface=lo
interface=enp2s0
# in case of a bridge don't use the attached server virtual ethernet interface
# The below defines a Wildcard DNS Entry.
#address=/.localnet/10.10.10.zzz
# Upstream public net DNS server (max.three)
no-poll
server=134.102.xx.yy
server=134.102.uu.vv
server=2001:638:xxx:yyy::zz
## Configuration of the DHCP service for the private network (example.lan)</p>
# etc/NetworkManager/dnsmasq.d/02-DHCP-example-lan.conf
# This file sets up DHCP for the private local net domain example.lan
# The domain the DHCP part of dnsmasq is responsible for:
domain=example.lan,10.10.10.0/24,local
# interfaces to listen on
interface=enp2s0
# general DHCP stuff (options, see RFC 2132)
# 1: subnet masq
# 3: default router
# 6: DNS server
# 12: hostname
# 15: DNS domain (unneeded with option 'domain')
# 28: broadcast address
dhcp-authoritative
dhcp-option=1,255.255.255.0
dhcp-option=3,10.10.10.10
dhcp-option=6,10.10.10.1
# Assign fixed IP addresses based on MAC address
# dhcp-host=00:1a:64:ce:89:4a,NAME01,10.10.10.50,infinite
# dhcp-host=52:54:00:42:6a:43,NAME02,10.10.10.51,infinite
# Assign dynamically IP addresses to interface to listen on
# Range for distributed addresses, tagged <int> for further references dhcp-range=tag:enp2s0,10.10.10.150,10.10.10.200,24h
### Configuration of the DHCP service for the public network (example.com)</p>
# etc/NetworkManager/dnsmasq.d/03-DHCP-example-com.conf
# This file sets up DNCP for the public example.com domain interface
# The domain the DHCP part of dnsmasq is responsible for:
domain=example.com,134.102.xx.yy/27
# interfaces to listen on
interface=enp1s0
# general DHCP stuff (options, see RFC 2132)
# 1: subnet masq
# 3: default router
# 6: DNS server
# 12: hostname
# 15: DNS domain (unneeded with option 'domain')
# 28: broadcast address
##dhcp-authoritative
## we just send the bare minimum, e.g. no DNS server
##dhcp-option=1,255.255.255.224
dhcp-option=tag:enp1s0,option=router,134.102.3.30
# Assign fixed IP addresses based on MAC address
# dhcp-host=00:1a:64:ce:89:4a,thootes,10.10.10.50,infinite
# dhcp-host=52:54:00:42:6a:43,apollon,10.10.10.51,infinite
# Assign dynamically IP addresses to interface to listen on
# Range for distributed addresses, tagged <int> for further references dhcp-range=tag:enp1s0,134.102.3.19,134.102.3.26,1h
The text was updated successfully, but these errors were encountered:
from https://docs.fedoraproject.org/en-US/fedora-server/administration/dnsmasq/
The text was updated successfully, but these errors were encountered: