Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set raw response data from DNS client #195

Merged
merged 4 commits into from May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x

- name: Check out code
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions client.go
Expand Up @@ -391,6 +391,10 @@ func (c *Client) queryMultiple(host string, requestTypes []uint16, resolver Reso
err = dnsdata.ParseFromMsg(resp)
}

// Note: this will refer only to the last valid response
// the whole series of responses can be found in the dnsdata.Raw field
dnsdata.RawResp = resp

// populate anyway basic info
dnsdata.Host = host
switch {
Expand Down