User Tools

Site Tools


Sidebar

dns

This is an old revision of the document!


Setup

https://fedoramagazine.org/dnsmasq-provide-dns-dhcp-services/

sudo apt-get install dnsmasq resolvconf

Edit /etc/dnsmasq.conf

domain-needed bogus-priv strict-order no-resolv interface=en01 listen-address=127.0.0.1,192.168.1.2

# Open DNS server=208.67.222.222 server=208.67.220.220 # Set static IPs of other PCs and the Router. #dhcp-host=10:1f:41:d1:11:1c,iptime,192.168.0.1,infinite # Router dhcp-host=b2:27:2b:c2:52:c2,aname,192.168.1.97,720m dhcp-host=b2:27:3b:b3:83:63,anotername,192.168.1.96,720m dhcp-host=14:43:74:45:46:54,server,192.168.1.95,720m dhcp-range=192.168.1.100,192.168.1.200,24h dhcp-option=option:router,192.168.1.1 dhcp-authoritative dhcp-leasefile=/var/lib/dnsmasq/dnsmasq.leases DNS Only https://medium.com/myatus/poor-mans-device-discovery-dns-492a95ea8c8b I use dnsmasq now only for dns, not dhcp. I use this “trick” to keep my mac's and IPs the same.

run

sudo arp-scan -l -m /usr/share/arp-scan/mac-vendor.txt see IPs and MACs. Want to keep a record of that, do:

sudo vim /usr/share/arp-scan/mac-vendor.txt ## Vissie's adresses # pls copy past this line as you NEED the tab…. 10AA4B06550D linksys 80A11CA6D1 tflow sudo systemctl restart dnsmasq.service

dns.1623406805.txt.gz · Last modified: 2021/06/11 03:20 by vissie