project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] DNS address(es) supplied during first-boot configuration seemingly not applied

Open runegar opened this issue 7 months ago • 3 comments

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

  1. First-boot configuration wizard [VM] asks for user-supplied information, including preferred DNS addresses.
  2. User provides preferred DNS address(es)
  3. 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

Image Image

Checklist

  • [X] I have searched existing issues to make sure this is not a duplicate
  • [X] I am using the latest version of PegaProx

runegar avatar Apr 16 '26 04:04 runegar

Update to clarify the PegaProx version used is the VM Template 109 (latest available at time of post)

runegar avatar Apr 16 '26 04:04 runegar

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:

  1. Inside the VM after first-boot completed, what does ls -la /etc/resolv.conf show? If it's a symlink to stub-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.
  2. 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.conf doesn'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.

mkellermann97 avatar Apr 20 '26 11:04 mkellermann97

Done

MrMasterbay avatar Apr 26 '26 22:04 MrMasterbay