title: DNS caching in Linux
body: <p>I am confused about DNS caching. I am writing a small forward proxy server and want to use the OS DNS cache on a Linux system.</p>
  <p>If I understand correctly, there is DNS caching at the browser level. Then there is DNS caching at the OS level (Windows has it. I am not sure if Linux distros have it by default).</p>
  <p>How does a browser or proxy server use OS DNS caching? I am trying to find out if I can rely on Linux for DNS caching instead of doing it on my own inside my proxy.</p>