Skip to content

Adding -tcp flag for tcp. Show when reply are truncated. Show repl length - #133

Merged
ldemailly merged 2 commits into
mainfrom
trunc_and_tcp
Jul 26, 2025
Merged

Adding -tcp flag for tcp. Show when reply are truncated. Show repl length#133
ldemailly merged 2 commits into
mainfrom
trunc_and_tcp

Conversation

@ldemailly

Copy link
Copy Markdown
Member

Fixes #132

@ldemailly
ldemailly requested a review from Copilot July 26, 2025 19:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds TCP support for DNS queries and enhances output with truncation warnings and response length information. The changes enable users to switch from UDP to TCP for DNS queries when needed, particularly useful for handling truncated responses.

  • Adds a new -tcp flag to enable TCP instead of UDP for DNS queries
  • Shows truncation warnings in output with suggestion to use TCP
  • Displays response length in bytes for each query

Comment thread dnsping.go
@ldemailly
ldemailly requested a review from geofpwhite July 26, 2025 19:35
@ldemailly
ldemailly merged commit 948d935 into main Jul 26, 2025
7 checks passed
@ldemailly
ldemailly deleted the trunc_and_tcp branch July 26, 2025 19:46
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.

add tcp mode and/or show truncated flag in responses

2 participants