Skip to content

ADFA-4630: provision resolv.conf at terminal login so the terminal has DNS#174

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-4630-terminal-login-resolvconf
Jul 10, 2026
Merged

ADFA-4630: provision resolv.conf at terminal login so the terminal has DNS#174
luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-4630-terminal-login-resolvconf

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Entering the terminal (iiab --login) is not a "boot", so nothing seeded /etc/resolv.conf and DNS/internet failed from the manual terminal. Only the app's install/start paths write it (via PRootEngine).

Change

  • TerminalController.do_login() now seeds /etc/resolv.conf from the app's effective DNS (PrefsDnsConfigRepository.loadEffective() — the user's custom config when enabled, else defaults) right before entering the jail, without starting any service. Same source/behavior the app already uses on every proot launch.
  • --reset bootstrap now uses that same effective DNS instead of hardcoded 1.1.1.1/8.8.8.8.
  • DNS values are charset-guarded (IPv4/IPv6 only) before being echoed into the generated CLI script.

Verify

  • Device: open the terminal, run iiab --login (server stopped, no prior install this session), then inside: cat /etc/resolv.conf shows the configured nameserver(s) and DNS resolves (e.g. getent hosts github.com / a download works).
  • With a custom DNS saved in the app, the login resolv.conf reflects it.

Relates to ADFA-4629 (surfaced during its verification).

…s DNS

Entering the terminal (iiab --login) is not a boot, so nothing seeded
/etc/resolv.conf and DNS/internet failed from the manual terminal -- only the
app's install/start paths write it (via PRootEngine). do_login() now seeds
resolv.conf from the app's effective DNS (PrefsDnsConfigRepository.loadEffective():
the user's custom config when enabled, else defaults) right before entering the
jail, without starting any service. The --reset bootstrap now uses that same
effective DNS instead of hardcoded 1.1.1.1/8.8.8.8. DNS values are charset-guarded
(IPv4/IPv6 only) before being echoed into the generated CLI script.
@luisguzman-adfa luisguzman-adfa merged commit 249e1eb into main Jul 10, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the fix/ADFA-4630-terminal-login-resolvconf branch July 10, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant