<div dir="ltr">Think it is being overridden in /etc/network/interfaces as well.  Tried enabling prepend domain-name-servers in dhclient.conf, but that didn&#39;t work.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 2, 2021 at 1:37 PM Bruce Dawson &lt;<a href="mailto:jbd@codemeta.com">jbd@codemeta.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>This is being set by dhclient when it gets the DHCP info.</p>
    <p>I believe you can &quot;fix&quot; this by removing the
      &#39;domain-name-servers&#39; from the &#39;request&#39; stanza in
      /etc/dhcp/dhclient.conf. You probably want to do this ONLY on the
      machines that you don&#39;t want to get the DNS servers from DHCP.<br>
    </p>
    <p>--Bruce<br>
    </p>
    <div>On 8/2/21 11:45 AM, Bruce Labitt wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Due to some ISP snafus, and network
        reconfiguration, some of my RPI&#39;s are pointing to the wrong
        nameserver.  I use a pihole for DNS.  Anyways, I have a single
        RPI2 as a print server and it is stubbornly pointing to the
        wrong IP address.  The RPI2 is running on Raspberry Pi Debian
        Stretch.  I only use this node as the cups printer.
        <div><br>
        </div>
        <div>If I do cat /etc/resolve.conf I get, # generated by
          resolvconf  nameserver  192.168.1.xxx</div>
        <div>I want to have it permanently point to 192.168.1.1, ie the
          gateway so that I let the router redirect DNS traffic to
          pihole.  Looking at resolvconf info, it says NOT to use it
          directly.  So how does one do this?</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gnhlug-discuss mailing list
<a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank">gnhlug-discuss@mail.gnhlug.org</a>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
gnhlug-discuss mailing list<br>
<a href="mailto:gnhlug-discuss@mail.gnhlug.org" target="_blank">gnhlug-discuss@mail.gnhlug.org</a><br>
<a href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/" rel="noreferrer" target="_blank">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a><br>
</blockquote></div>