Advertisement
douglasmun

Running your own DNS server

Apr 5th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <Info Sharing> Tips on running your own DNS server
  2.  
  3. Technical tip sharing time…
  4.  
  5. Many of us like to use public DNS servers i.e. Google, OpenDNS rather than our ISP default DNS servers.
  6. This helps when your ISP DNS servers decided to fail as we have encountered with an ISP twice already.
  7.  
  8. Have you tried running your own DNS server instead? As Public DNS might tracks your surfing behaviour.
  9.  
  10. On my Mac OS X, I tried bind instead of dnsmasq and utilise brew services instead of sudo launchctl
  11.  
  12. # Install open source DNS server bind on OS X
  13. $ brew install bind
  14. $ brew tap homebrew/services
  15. $ brew services start bind
  16. $ dig @127.0.0.1 google.com
  17.  
  18. At this point, if bind is running properly you might want to point OS X to it.
  19. Choose Apple menu > System Preferences, then click Network.
  20. In the list at the left, select the network connection you using (such as Wi-Fi or Ethernet), then click Advanced.
  21. Click DNS, then click the “-“ Subtract to remove your existing DNS and “+” Add your local DNS (bind) as 127.0.0.1.
  22.  
  23. # Check if bind is running and restart if it has stopped.
  24. $ brew services list
  25. $ brew services restart bind
  26.  
  27. Reference:
  28. https://gist.github.com/cyril-bouthors/d62ecb9baba23f400e81
  29. https://robots.thoughtbot.com/starting-and-stopping-background-services-with-homebrew
  30.  
  31. =============================
  32. Common open DNS servers
  33.  
  34. Cloudflare DNS
  35. 1.1.1.1
  36. 1.0.0.1
  37. 2606:4700:4700::1111
  38. 2606:4700:4700::1001
  39.  
  40. Google DNS
  41. 8.8.8.8
  42. 8.8.4.4
  43. 2001:4860:4860::8888
  44. 2001:4860:4860::8844
  45.  
  46. OpenDNS
  47. 208.67.222.222
  48. 208.67.220.220
  49. 2620:0:ccc::2
  50. 2620:0:ccd::2
  51.  
  52. Quad9 DNS
  53. 9.9.9.9
  54. 2620:fe::fe
  55.  
  56. DNS.WATCH
  57. 84.200.69.80
  58. 84.200.70.40
  59.  
  60. Comodo Secure DNS
  61. 8.26.56.26
  62. 8.20.247.20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement