Skip to content

Re-resolve hostname on connection failure for DHCP support#7

Merged
johnathan-arsenault merged 1 commit into
mainfrom
jarsenault-clear-resolution-on-connection-lost
Feb 3, 2026
Merged

Re-resolve hostname on connection failure for DHCP support#7
johnathan-arsenault merged 1 commit into
mainfrom
jarsenault-clear-resolution-on-connection-lost

Conversation

@johnathan-arsenault

Copy link
Copy Markdown

When using hostnames instead of static IPs, the resolved IP address may change in DHCP environments. This change ensures that:

  • Agent Adapter: Clears cached DNS resolution in failed() so the next reconnection attempt performs a fresh DNS lookup
  • SHDR Connector: Re-resolves hostname in asyncTryConnect() instead of using cached results (static IPs still connect directly)

When using hostnames instead of static IPs, the resolved IP address
may change in DHCP environments. This change ensures that:

- Agent Adapter: Clears cached DNS resolution in failed() so the next
  reconnection attempt performs a fresh DNS lookup
- SHDR Connector: Re-resolves hostname in asyncTryConnect() instead of
  using cached results (static IPs still connect directly)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@johnathan-arsenault
johnathan-arsenault merged commit 93519ab into main Feb 3, 2026
1 check passed
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.

2 participants