Persistent 8.8.8.8 DNS

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
misterrocks
Posts: 150
Joined: Tue Jan 11, 2022 1:43 am
Has thanked: 55 times
Been thanked: 3 times

Persistent 8.8.8.8 DNS

Unread post by misterrocks »

Is using the following in dhcpcd.conf the best way to set a static DNS address:

domain_name_servers=8.8.8.8

Will it be overwritten the next time I update?

akeley
Top Contributor
Posts: 1441
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 497 times
Been thanked: 467 times

Re: Persistent 8.8.8.8 DNS

Unread post by akeley »

CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos

misterrocks
Posts: 150
Joined: Tue Jan 11, 2022 1:43 am
Has thanked: 55 times
Been thanked: 3 times

Re: Persistent 8.8.8.8 DNS

Unread post by misterrocks »

Several solutions there including the above which I'll assume would be overwritten at the next update. I'll see if I can get the router to assign static DNS.

Bas
Top Contributor
Posts: 623
Joined: Fri Jan 22, 2021 4:36 pm
Has thanked: 80 times
Been thanked: 324 times

Re: Persistent 8.8.8.8 DNS

Unread post by Bas »

That's how DHCP is supposed to work: the DHCP server (your router) assigns options to the clients (your MiSTer). Usually you can set these options for the whole network but also for individual hosts if your router is worth its salt. That'd cleanly decouple your network configuration from the MiSTer's local settings.

zakk4223
Posts: 289
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 120 times

Re: Persistent 8.8.8.8 DNS

Unread post by zakk4223 »

The downloader perserves some files:

If there are any of these files in /media/fat/linux:
hostname
hosts
interfaces
resolv.conf
dhcpd.conf
fstab

they are copied into the new linux image after update

Post Reply