Page 1 of 1

Persistent 8.8.8.8 DNS

Posted: Thu Feb 08, 2024 2:16 pm
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?


Re: Persistent 8.8.8.8 DNS

Posted: Thu Feb 08, 2024 2:27 pm
by akeley

Re: Persistent 8.8.8.8 DNS

Posted: Thu Feb 08, 2024 3:11 pm
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.


Re: Persistent 8.8.8.8 DNS

Posted: Thu Feb 08, 2024 3:14 pm
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.


Re: Persistent 8.8.8.8 DNS

Posted: Thu Feb 08, 2024 5:57 pm
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