Title: LookupSession doesn't seem to cache CNAMEs · Issue #316 · dnsjava/dnsjava · GitHub
Open Graph Title: LookupSession doesn't seem to cache CNAMEs · Issue #316 · dnsjava/dnsjava
X Title: LookupSession doesn't seem to cache CNAMEs · Issue #316 · dnsjava/dnsjava
Description: For example, given a cache like: {Integer@2917} 1 -> {Cache@2918} "{ _dmarc.pa.gov. 86337 IN CNAME [pa.gov.hosted.dmarc-report.com.] } cl = 3 { pa.gov.hosted.dmarc-report.com. 237 IN TXT ["v=DMARC1; p=quarantine; sp=quarantine; rua=mailt...
Open Graph Description: For example, given a cache like: {Integer@2917} 1 -> {Cache@2918} "{ _dmarc.pa.gov. 86337 IN CNAME [pa.gov.hosted.dmarc-report.com.] } cl = 3 { pa.gov.hosted.dmarc-report.com. 237 IN TXT ["v=DMARC1...
X Description: For example, given a cache like: {Integer@2917} 1 -> {Cache@2918} "{ _dmarc.pa.gov. 86337 IN CNAME [pa.gov.hosted.dmarc-report.com.] } cl = 3 { pa.gov.hosted.dmarc-report.com. 237 IN TXT [&...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/316
X: @github
Domain: redirect.github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LookupSession doesn't seem to cache CNAMEs","articleBody":"For example, given a cache like:\r\n\r\n```\r\n{Integer@2917} 1 -> {Cache@2918} \"{ _dmarc.pa.gov. 86337 IN CNAME [pa.gov.hosted.dmarc-report.com.] } cl = 3\r\n{ pa.gov.hosted.dmarc-report.com. 237 IN TXT [\"v=DMARC1; p=quarantine; sp=quarantine; rua=mailto:f8debbc3@mxtoolbox.dmarc-report.com; ruf=mailto:f8debbc3@forensics.dmarc-report.com; fo=0\"] } cl = 3\r\n```\r\nAnd a call like this with a LookupSession from the default builder (which has a Cache):\r\n\r\n```\r\nlookupSession.lookupAsync(Name.fromString(\"_dmarc.pa.gov.\"), Type.TXT)\r\n...\r\n```\r\n\r\nWhen it hits lookupWithRecords here:\r\nhttps://github.com/dnsjava/dnsjava/blob/6204b0ea94868a71ad9369fc98ce953d270ff339/src/main/java/org/xbill/DNS/lookup/LookupSession.java#L470-L475\r\n\r\n` c.lookupRecords` finds the entry, but `setResponseToMessageFuture` converts it to null, because the response wasn't 'successful' as per this:\r\n\r\nhttps://github.com/dnsjava/dnsjava/blob/6204b0ea94868a71ad9369fc98ce953d270ff339/src/main/java/org/xbill/DNS/lookup/LookupSession.java#L495-L513\r\n\r\nI've tried this with a handful of CNAMEs and they all seem to fail regardless of TTL.\r\n\r\nHonestly, I'm fuzzy on how caching in the DNS spec works with CNAMEs, so maybe this is working as intended. It seems like maybe the native JVM dns resolver work similarly (still investigating that, but just based on how long subsequent queries take it might not be?).","author":{"url":"https://github.com/dropofwill","@type":"Person","name":"dropofwill"},"datePublished":"2024-03-12T18:32:22Z","url":"https://github.com/dnsjava/dnsjava/issues/316"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c5cd9241-e7d7-9c80-ada2-cedb8718c615 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D190:3E7AB:331B2A:460072:6B060158 |
| html-safe-nonce | 66aa052cf6a431199c902a47af7651b220deb48fd45a5bdd4a2332b885e010bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTkwOjNFN0FCOjMzMUIyQTo0NjAwNzI6NkIwNjAxNTgiLCJ2aXNpdG9yX2lkIjoiNTIyMjg5Nzg2NDAxOTQxMTI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a05a66e5ccd859ee2af368f9c19c8953db085eb5917af91ceb3299c895503bb |
| hovercard-subject-tag | issue:2182413596 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dnsjava/dnsjava/316/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f157b915eed4b0713df62500bdceba33a285adf509b1dff3082d3b784119aa8/dnsjava/dnsjava/issues/316 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f157b915eed4b0713df62500bdceba33a285adf509b1dff3082d3b784119aa8/dnsjava/dnsjava/issues/316 |
| og:image:alt | For example, given a cache like: {Integer@2917} 1 -> {Cache@2918} "{ _dmarc.pa.gov. 86337 IN CNAME [pa.gov.hosted.dmarc-report.com.] } cl = 3 { pa.gov.hosted.dmarc-report.com. 237 IN TXT ["v=DMARC1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dropofwill |
| hostname | github.com |
| expected-hostname | github.com |
| None | c214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece |
| turbo-cache-control | no-preview |
| go-import | github.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git |
| octolytics-dimension-user_id | 6755615 |
| octolytics-dimension-user_login | dnsjava |
| octolytics-dimension-repository_id | 17084567 |
| octolytics-dimension-repository_nwo | dnsjava/dnsjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17084567 |
| octolytics-dimension-repository_network_root_nwo | dnsjava/dnsjava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d164a4e71eb333b2b17fd5b17e18efb7855505c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width