bohanyang / debi

Reinstall your VPS to minimal Debian
The Unlicense
1.38k stars 309 forks source link

Use previous sources.list and resolv.sonf #125

Open Suyun114 opened 1 month ago

Suyun114 commented 1 month ago

Some IDCs like Tencent Cloud use an intranet mirror with intranet DNS resolved. There will be convenience to keep sources.list and resolv.conf in the new installed OS.

bohanyang commented 1 month ago

sources.list

Another China-specific problem... For servers in most countries, the official global CDN mirror (deb.debian.org) is very fast ~enough~

There will be convenience to keep previous one

The goal that we use this script is to get rid of some shit included in the official OS template. So I think it is better to provide the official one by default, while specify the one you want explicitly .

resolv.conf

If you use DHCP it will follow DNS servers that provided by DHCP

bohanyang commented 1 month ago

So I mean, keeping the original config files doesn't work. If resolv.conf use 127.0.0.1 but there's no DNS server in the new OS, the system will broken

bohanyang commented 1 month ago

If you want to use provider-provided (Tencent Cloud) DNS etc. it should be provided in DHCP (not by overriding the resolv.conf).