Skip to content

Commit c89cc2c

Browse files
doctor: print which nameservers the reality check actually used
Debug line to confirm whether the systemd-resolved D-Bus path (real per-link servers) or the resolv.conf fallback is engaged for a given query — needed to disambiguate cases where both paths happen to agree on a nonexistent domain.
1 parent bced035 commit c89cc2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎gai/src/doctor.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ pub fn run(name: &str) -> anyhow::Result<()> {
3333
reality::check(name, effective_servers).ok()
3434
};
3535

36+
println!(
37+
" (reality check via {:?}, systemd-resolved stub: {})\n",
38+
effective_servers, resolv.is_systemd_stub
39+
);
40+
3641
println!("RESOLUTION PATH (simulated):");
3742
for (i, step) in outcome.steps.iter().enumerate() {
3843
println!(" {}. [{:?}] {:?}", i + 1, step.source, step.result);

0 commit comments

Comments
 (0)