title: Remove EC2's entry from resolv.conf
body: <p>I have private DNS servers and I want to write them to <code>resolv.conf</code> with <code>resolvconf</code> on Debian on AWS/EC2.
  There is a problem in the order of nameserver entries.
  In my <code>resolv.conf</code>, EC2's default nameserver is always written at first line like so:</p>
  
  <pre><code># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
  #    DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  nameserver 172.16.0.23
  nameserver 10.0.1.185
  nameserver 10.100.0.130
  search ap-northeast-1.compute.internal
  </code></pre>
  
  <p><code>172.16.0.23</code> is EC2's default nameserver and others are mine.</p>
  
  <p>How to remove EC2 entry? Or, how to move EC2 entry to third?</p>
  
  <p>Here I have an interface file:</p>
  
  <pre><code>% ls -l /etc/resolvconf/run/interface/
  -rw-r--r-- 1 root root  62 Jun  7 23:35 eth0
  </code></pre>
  
  <p>It seems that the file <code>eth0</code> is automatically generated by dhcp so can't remove it permanently.</p>
  
  <pre><code>% cat /etc/resolvconf/run/interface/eth0
  search ap-northeast-1.compute.internal
  nameserver 172.16.0.23
  </code></pre>
  
  <p>My private DNS entry is here:</p>
  
  <pre><code>% cat /etc/resolvconf/resolv.conf.d/base
  nameserver 10.0.1.185
  nameserver 10.100.0.130
  </code></pre>
  
  <p>Please help.</p>