Advertisement
josephxsxn

dns msaq settings

Jan 2nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.89 KB | None | 0 0
  1. https://computingforgeeks.com/install-and-configure-dnsmasq-on-ubuntu-18-04-lts/
  2.  
  3. sudo systemctl disable systemd-resolved
  4. sudo systemctl stop systemd-resolved
  5.  
  6. sudo apt-get install dnsmasq
  7.  
  8. sudo systemctl enable systemd-resolved
  9. sudo systemctl start systemd-resolved
  10.  
  11. sudo vim /etc/NetworkManager/NetworkManager.conf
  12.  
  13. [main]
  14. dns=none
  15.  
  16. ##DNSMasqFile
  17.  
  18. cat /etc/dnsmasq.conf
  19. server=8.8.8.8
  20. server=8.8.4.4
  21. server=/socialgist.local/192.168.10.51
  22. server=/socialgist.local/192.168.10.52
  23.  
  24. port=53
  25.  
  26. # Never forward plain names (without a dot or domain part)
  27. domain-needed
  28. # Never forward addresses in the non-routed address spaces.
  29. bogus-priv
  30.  
  31. # By  default,  dnsmasq  will  send queries to any of the upstream
  32. # servers it knows about and tries to favour servers to are  known
  33. # to  be  up.  Uncommenting this forces dnsmasq to try each query
  34. # with  each  server  strictly  in  the  order  they   appear   in
  35. # /etc/resolv.conf
  36. strict-order
  37.  
  38. # If you want dnsmasq to listen for DHCP and DNS requests only on
  39. # specified interfaces (and the loopback) give the name of the
  40. # interface (eg eth0) here.
  41. # Repeat the line for more than one interface.
  42. #interface=
  43. # Or you can specify which interface _not_ to listen on
  44. #except-interface=
  45. # Or which to listen on by address (remember to include 127.0.0.1 if
  46. # you use this.)
  47. listen-address=127.0.0.1
  48.  
  49. # Set this (and domain: see below) if you want to have a domain
  50. # automatically added to simple names in a hosts-file.
  51. expand-hosts
  52.  
  53. # Set the domain for dnsmasq. this is optional, but if it is set, it
  54. # does the following things.
  55. # 1) Allows DHCP hosts to have fully qualified domain names, as long
  56. #     as the domain part matches this setting.
  57. # 2) Sets the "domain" DHCP option thereby potentially setting the
  58. #    domain of all systems configured by DHCP
  59. # 3) Provides the domain part for "expand-hosts"
  60. domain=socialgist.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement