Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 368 Bytes

dns.md

File metadata and controls

30 lines (24 loc) · 368 Bytes

DNS

Change local DNS

  • Edit /etc/resolv.conf
nameserver $IP_ADDR
  • Test that DNS is working properly
host google.com

Add custom host records

  • Edit /etc/hosts
$IP_ADDR $DNS
  • Example
192.168.0.97 pi.hole
  • Test that it works: browser/ping

Restart DNS and clear the cache

sudo /etc/init.d/networking restart