Permanently changing nameserver
Bruce Labitt
bdlabitt at gmail.com
Mon Aug 2 14:06:52 EDT 2021
At the time I set up this node (many years ago now) I was having a LOT of
trouble with NetworkManager. Basically I bypassed it. (Nowadays, on other
machines, including RPI4 and Ubuntu, it seems to work fine.)
To the best of my knowledge, I had purged NetworkManager on this RPI2. So
NetworkManager is not active. ie, /etc/NetworkManager/NetworkManager.conf
does not exist on this RPI2. There is no service NetworkManager running
either.
On Mon, Aug 2, 2021 at 1:46 PM Bruce Dawson <jbd at codemeta.com> wrote:
> Then you may want to do
>
> [main]
>
> dns=none
>
> in /etc/NetworkManager/NetworkManager.conf
>
> --Bruce
> On 8/2/21 1:43 PM, Bruce Labitt wrote:
>
> Think it is being overridden in /etc/network/interfaces as well. Tried
> enabling prepend domain-name-servers in dhclient.conf, but that didn't work.
>
> On Mon, Aug 2, 2021 at 1:37 PM Bruce Dawson <jbd at codemeta.com> wrote:
>
>> This is being set by dhclient when it gets the DHCP info.
>>
>> 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.
>>
>> --Bruce
>> On 8/2/21 11:45 AM, Bruce Labitt wrote:
>>
>> 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.
>>
>> If I do cat /etc/resolve.conf I get, # generated by resolvconf
>> nameserver 192.168.1.xxx
>> 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?
>>
>>
>> _______________________________________________
>> gnhlug-discuss mailing listgnhlug-discuss at mail.gnhlug.orghttp://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>>
>> _______________________________________________
>> gnhlug-discuss mailing list
>> gnhlug-discuss at mail.gnhlug.org
>> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>>
>
> _______________________________________________
> gnhlug-discuss mailing listgnhlug-discuss at mail.gnhlug.orghttp://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/pipermail/gnhlug-discuss/attachments/20210802/1ed0a74c/attachment.html
More information about the gnhlug-discuss
mailing list