Skip to content

Instantly share code, notes, and snippets.

@mortn
Last active July 26, 2022 11:48
Show Gist options
  • Save mortn/0ec19adb18950935ac24 to your computer and use it in GitHub Desktop.
Save mortn/0ec19adb18950935ac24 to your computer and use it in GitHub Desktop.
Dnsmasq.conf as DHCP with PXE and DNS with selective suffix/domain-search (yeah baby, it works like a charm!)
domain-needed
bogus-priv
strict-order
no-resolv
no-poll
server=8.8.8.8
server=8.8.4.4
server=/external.com/10.45.1.59
server=/dom.test/10.0.0.200
local=/home.local/
local=/dom.test/
except-interface=eth0
expand-hosts
domain=home.local
dhcp-range=10.0.0.40,10.0.0.199,12h
dhcp-host=00:1b:a9:ce:3c:9f,brother,10.0.0.10,infinite
dhcp-host=52:54:00:9b:ff:7b,buzz,10.0.0.9
dhcp-host=52:54:00:9b:fa:7b,django,10.0.0.16
dhcp-host=52:54:00:50:1f:f2,docker,10.0.0.8
dhcp-host=20:cf:30:72:46:5f,luna,10.0.0.3,infinite,set:green
dhcp-host=52:54:00:b4:56:fa,nestor,10.0.0.4
dhcp-host=hub,10.0.0.5
dhcp-host=52:54:00:20:e5:8f,owncloud,10.0.0.17
dhcp-host=80:1f:02:f1:da:2d,pilow,10.0.0.21
dhcp-host=pito
dhcp-host=parz,10.0.0.19
dhcp-host=superman-x1,10.0.0.20,set:green
dhcp-host=rp,10.0.0.23,set:green
dhcp-host=pyweb,10.0.0.24
dhcp-host=00:27:22:b6:9c:df,unifi,10.0.0.99,infinite
dhcp-host=52:54:00:d6:e3:c6,virtula,10.0.0.18
dhcp-host=7c:2f:80:13:dd:cb,gigaset,10.0.0.252
dhcp-host=ac:f1:df:74:0f:54,dgs1210,10.0.0.253
dhcp-host=00:02:9b:a7:ac:e2,tvbox1,10.0.0.250
dhcp-option=tag:green,option:domain-search,home.local,external.com
dhcp-boot=pxelinux.0
pxe-prompt="Press F8 for menu.",10
pxe-service=x86PC,"Boot from local disk"
pxe-service=x86PC,"Install Linux",pxelinux.0
enable-tftp
tftp-root=/var/lib/tftp
dhcp-authoritative
cache-size=2048
mx-host=home.local,mail.home.local,10
cname=apt-proxy,nestor
cname=mariadb,mariadb1
log-queries
log-dhcp
log-facility=/var/log/dnsmasq.log
address=/doubleclick.net/127.0.0.1
address=/adsdk.com/127.0.0.1
address=/adserver.aol.fr/127.0.0.1
address=/tradedoubler.com/127.0.0.1
address=/pages.etology.com/127.0.0.1
address=/pop6.com/127.0.0.1
address=/advertising.com/127.0.0.1
address=/yieldmanager.com/127.0.0.1
address=/adtech.de/127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment