Fix DNS resolution issue during installation#1248
Fix DNS resolution issue during installation#1248ShreyasZare merged 4 commits intoTechnitiumSoftware:developfrom
Conversation
- Add ICU package check and installation before modifying resolv.conf - Support multiple package managers (apt-get, dnf, yum, zypper, pacman, apk) - Add fallback DNS server (1.1.1.1) in resolv.conf - Add comments in resolv.conf for better documentation
Adjusted distro specific package names
This reverts commit a147ac1.
Support multiple package managers with researched distribution-specific package names: - Debian/Ubuntu: libicu74, libicu72, libicu70 (with fallback) - RHEL/Fedora/CentOS: libicu - openSUSE: libicu - Arch Linux: icu - Alpine Linux: icu
|
Thanks for the PR. Will check it and let you know soon. |
|
Hi @ShreyasZare, Now that the installer changes are live, I wanted to check in and see if there have been any reports of issues or unexpected behavior on any Linux distributions. I tested the script on RHEL, but since it also handles multiple distros and package managers, I want to make sure everything is working smoothly for Debian, Ubuntu, openSUSE, Arch, Alpine, and others. As you know, with all the different Linux distributions out there, it’s always possible that something slips through despite our best efforts. Since the installer script is the main way most users set up Technitium DNS Server on Linux, I want to be sure the experience remains reliable for everyone. If you or any users have noticed any problems or have feedback, please let me know—I'm happy to help troubleshoot or improve the script further if needed. Thanks again for merging and for all your work on the project! —Paul |
|
@Paul1404 Thanks for asking. There have been no issues reported till now. I had added ICU test CLI option to use with the script so if the ICU package is missing, the installer fails with info on how to fix it. So, at least, there wont be case like before where it would cause system to fail to resolve DNS due to DNS server failing to start. |
Problem
The current installation script creates a potential catch-22 situation:
Background
I encountered this issue on one of our RHEL systems while deploying Technitium DNS Server. Since Technitium is an incredible DNS server, I wanted to contribute to making it even better and more user-friendly, especially for those who might not immediately understand why their DNS suddenly stopped working after installation.
Solution
This PR addresses the issue by:
Testing
I've tested this solution on a RHEL system that was missing the ICU package. The modified script:
This change improves the user experience, especially for new users or those on minimal distributions where ICU packages aren't installed by default.