[Bug] DNS address(es) supplied during first-boot configuration seemingly not applied
Describe the bug
DNS addresses supplied during first-boot wizard seemingly ignored/not applied to /etc/resolv.conf. Running "cat /etc/resolv.conf" following setup completion returns the single, default entry of 1.1.1.1.
Steps to Reproduce
- First-boot configuration wizard [VM] asks for user-supplied information, including preferred DNS addresses.
- User provides preferred DNS address(es)
- Supplied data appears not written to /etc/resolv.conf following completion
Expected behavior
User-supplied DNS address(es) should be written to /etc/resolv.conf
Environment
- PegaProx Version: (PegaProx Template 109)
- Installation Method: VM
- OS: Windows 11
- Browser: Brave 1.89.132 (Chromium 147.0.7727.56)
- Behind Reverse Proxy? No
- UI? N/A
Screenshots
Checklist
- [X] I have searched existing issues to make sure this is not a duplicate
- [X] I am using the latest version of PegaProx
Update to clarify the PegaProx version used is the VM Template 109 (latest available at time of post)
Hey @runegar — thanks for the detailed report and the screenshots, helps a lot.
The first-boot wizard ships as part of the PegaProx VM Template (the "Template 109" you noted), which is a separate artifact from the main PegaProx app — the wizard script writes /etc/resolv.conf directly on template init. Two quick things would help me narrow this down:
- Inside the VM after first-boot completed, what does
ls -la /etc/resolv.confshow? If it's a symlink tostub-resolv.conf(systemd-resolved), that would explain why the wizard's writes don't persist — systemd-resolved manages it dynamically and our wizard currently doesn't know about that. - Can you check
/var/log/pegaprox-firstboot.log(if present) — the wizard logs whatever it tried to write. If the log shows your DNS entries but/etc/resolv.confdoesn't, we've got our answer.
Based on your answers we can either patch the wizard to also write via resolvectl or have it detect systemd-resolved and skip the direct file write.
Done