Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://computingforgeeks.com/install-and-configure-dnsmasq-on-ubuntu-18-04-lts/
- sudo systemctl disable systemd-resolved
- sudo systemctl stop systemd-resolved
- sudo apt-get install dnsmasq
- sudo systemctl enable systemd-resolved
- sudo systemctl start systemd-resolved
- sudo vim /etc/NetworkManager/NetworkManager.conf
- [main]
- dns=none
- ##DNSMasqFile
- cat /etc/dnsmasq.conf
- server=8.8.8.8
- server=8.8.4.4
- server=/socialgist.local/192.168.10.51
- server=/socialgist.local/192.168.10.52
- port=53
- # Never forward plain names (without a dot or domain part)
- domain-needed
- # Never forward addresses in the non-routed address spaces.
- bogus-priv
- # By default, dnsmasq will send queries to any of the upstream
- # servers it knows about and tries to favour servers to are known
- # to be up. Uncommenting this forces dnsmasq to try each query
- # with each server strictly in the order they appear in
- # /etc/resolv.conf
- strict-order
- # If you want dnsmasq to listen for DHCP and DNS requests only on
- # specified interfaces (and the loopback) give the name of the
- # interface (eg eth0) here.
- # Repeat the line for more than one interface.
- #interface=
- # Or you can specify which interface _not_ to listen on
- #except-interface=
- # Or which to listen on by address (remember to include 127.0.0.1 if
- # you use this.)
- listen-address=127.0.0.1
- # Set this (and domain: see below) if you want to have a domain
- # automatically added to simple names in a hosts-file.
- expand-hosts
- # Set the domain for dnsmasq. this is optional, but if it is set, it
- # does the following things.
- # 1) Allows DHCP hosts to have fully qualified domain names, as long
- # as the domain part matches this setting.
- # 2) Sets the "domain" DHCP option thereby potentially setting the
- # domain of all systems configured by DHCP
- # 3) Provides the domain part for "expand-hosts"
- domain=socialgist.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement