title: The domain and search options in resolv.conf
body: <p>Let's say you have a resolv.conf file that's something like this.</p>
  
  <pre><code>nameserver 192.168.0.7
  nameserver 192.168.0.8
  domain somedomain.local
  </code></pre>
  
  <p>Then let's say you just changed it to this.</p>
  
  <pre><code>nameserver 192.168.0.7
  nameserver 192.168.0.8
  search somedomain.local
  </code></pre>
  
  <p>Would these both do the same thing? Is one slightly better than the other?</p>
  
  <p>Why would declaring both a domain and search not be recommended?</p>