title: How to set DNS servers manually?
body: <p>How do I exclude DNS from the DHCP lease request on a Raspberry Pi?</p>
  
  <p>I tried updating <code>/etc/resolv.conf</code> but it's reset after a while.</p>
  
  <p>Reason: I am on a home network, and the home router uses itself as the DNS server, but the router's DNS service isn't working properly sometimes.</p>