Permanently changing nameserver
Bruce Labitt
bdlabitt at gmail.com
Mon Aug 2 13:40:02 EDT 2021
The dhcp server is the router and the options are quite limited. I can
reserve an existing ip address, but not add in an unserved address.
Is there a way to do this from the client side? The client needs to have
the nameserver changed.
I Tried editing resolv.conf (that's only temporary) so I could update the
node. Then later edited /etc/network/interfaces. This seems to have
worked, but I don't know that it is permanent, since I have not restarted
networking or the RPI2 itself.
On Mon, Aug 2, 2021 at 12:41 PM Derek Atkins <derek at ihtfp.com> wrote:
> Sounds like your dhcp server needs to be updated...
>
> -derek
> Sent using my mobile device. Please excuse any typos.
>
> On August 2, 2021 11:46:14 AM Bruce Labitt <bdlabitt at gmail.com> 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 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/fdb64e12/attachment.html
More information about the gnhlug-discuss
mailing list