Skip to content

Commit

Permalink
Merge pull request #195 from elvin-tajirzada/main
Browse files Browse the repository at this point in the history
Set raw response data from DNS client
  • Loading branch information
Mzack9999 committed May 2, 2024
2 parents b711607 + a36faa9 commit 3ededc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 3ededc3

Please sign in to comment.