<div dir="ltr"><div> You can also add this to /etc/dhcp/dhclient.conf</div><div><br></div><div><pre style="margin-top:0px;padding:12px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">interface "eth0" {
supercede domain-name-servers 192.168.1.1;
}</code></pre></div><div>On Mon, Aug 2, 2021 at 1:37 PM Bruce Dawson <<a href="mailto:jbd@codemeta.com">jbd@codemeta.com</a>> wrote:<br></div><div class="gmail_quote"><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 "fix" this by removing the
'domain-name-servers' from the 'request' stanza in
/etc/dhcp/dhclient.conf. You probably want to do this ONLY on the
machines that you don'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'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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">-- Thomas</div></div>