René's URL Explorer Experiment


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

direct link

Domain: redirect.github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c5cd9241-e7d7-9c80-ada2-cedb8718c615
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD190:3E7AB:331B2A:460072:6B060158
html-safe-nonce66aa052cf6a431199c902a47af7651b220deb48fd45a5bdd4a2332b885e010bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTkwOjNFN0FCOjMzMUIyQTo0NjAwNzI6NkIwNjAxNTgiLCJ2aXNpdG9yX2lkIjoiNTIyMjg5Nzg2NDAxOTQxMTI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8a05a66e5ccd859ee2af368f9c19c8953db085eb5917af91ceb3299c895503bb
hovercard-subject-tagissue:2182413596
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dnsjava/dnsjava/316/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4f157b915eed4b0713df62500bdceba33a285adf509b1dff3082d3b784119aa8/dnsjava/dnsjava/issues/316
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4f157b915eed4b0713df62500bdceba33a285adf509b1dff3082d3b784119aa8/dnsjava/dnsjava/issues/316
og:image:altFor 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedropofwill
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
go-importgithub.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git
octolytics-dimension-user_id6755615
octolytics-dimension-user_logindnsjava
octolytics-dimension-repository_id17084567
octolytics-dimension-repository_nwodnsjava/dnsjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17084567
octolytics-dimension-repository_network_root_nwodnsjava/dnsjava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://redirect.github.com/dnsjava/dnsjava/issues/316#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F316
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fissues%2F316
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=dnsjava%2Fdnsjava
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/316
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/316
Reloadhttps://redirect.github.com/dnsjava/dnsjava/issues/316
dnsjavahttps://redirect.github.com/dnsjava
dnsjavahttps://redirect.github.com/dnsjava/dnsjava
Codehttps://redirect.github.com/dnsjava/dnsjava
Issues16 (16)https://redirect.github.com/dnsjava/dnsjava/issues
Pull requests3 (3)https://redirect.github.com/dnsjava/dnsjava/pulls
Actionshttps://redirect.github.com/dnsjava/dnsjava/actions
Security and quality8 (8)https://redirect.github.com/dnsjava/dnsjava/security
Insightshttps://redirect.github.com/dnsjava/dnsjava/insights
https://redirect.github.com/dnsjava/dnsjava
New issuehttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/316
New issuehttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/316
LookupSession doesn't seem to cache CNAMEshttps://redirect.github.com/dnsjava/dnsjava/issues/316#top
https://redirect.github.com/ibauersachs
bughttps://github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
v3.6.1https://github.com/dnsjava/dnsjava/milestone/18
https://github.com/dropofwill
dropofwillhttps://github.com/dropofwill
on Mar 12, 2024https://github.com/dnsjava/dnsjava/issues/316#issue-2182413596
dnsjava/src/main/java/org/xbill/DNS/lookup/LookupSession.javahttps://github.com/dnsjava/dnsjava/blob/6204b0ea94868a71ad9369fc98ce953d270ff339/src/main/java/org/xbill/DNS/lookup/LookupSession.java#L470-L475
6204b0ehttps://redirect.github.com/dnsjava/dnsjava/commit/6204b0ea94868a71ad9369fc98ce953d270ff339
dnsjava/src/main/java/org/xbill/DNS/lookup/LookupSession.javahttps://github.com/dnsjava/dnsjava/blob/6204b0ea94868a71ad9369fc98ce953d270ff339/src/main/java/org/xbill/DNS/lookup/LookupSession.java#L495-L513
6204b0ehttps://redirect.github.com/dnsjava/dnsjava/commit/6204b0ea94868a71ad9369fc98ce953d270ff339
https://redirect.github.com/ibauersachs
ibauersachshttps://redirect.github.com/ibauersachs
on Mar 13, 2024https://github.com/dnsjava/dnsjava/issues/316#issuecomment-1993737824
ibauersachshttps://redirect.github.com/ibauersachs
bughttps://redirect.github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
on Mar 13, 2024https://github.com/dnsjava/dnsjava/issues/316#event-12099110087
https://redirect.github.com/dropofwill
dropofwillhttps://redirect.github.com/dropofwill
on Apr 1, 2024https://github.com/dnsjava/dnsjava/issues/316#issuecomment-2030416264
ibauersachshttps://redirect.github.com/ibauersachs
v3.6https://github.com/dnsjava/dnsjava/milestone/14
on Jun 22, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13251008450
ibauersachshttps://redirect.github.com/ibauersachs
on Jun 22, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13251008497
ibauersachshttps://redirect.github.com/ibauersachs
completedhttps://redirect.github.com/dnsjava/dnsjava/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 21, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13592394481
https://redirect.github.com/dropofwill
dropofwillhttps://redirect.github.com/dropofwill
on Jul 26, 2024https://github.com/dnsjava/dnsjava/issues/316#issuecomment-2253269022
@ibauersachshttps://github.com/ibauersachs
dnsjava/src/main/java/org/xbill/DNS/lookup/LookupSession.javahttps://github.com/dnsjava/dnsjava/blob/689c8ec9f1b49b74c18308c00e4041121b2656e4/src/main/java/org/xbill/DNS/lookup/LookupSession.java#L584-L590
689c8echttps://redirect.github.com/dnsjava/dnsjava/commit/689c8ec9f1b49b74c18308c00e4041121b2656e4
dnsjava/src/main/java/org/xbill/DNS/SetResponse.javahttps://github.com/dnsjava/dnsjava/blob/689c8ec9f1b49b74c18308c00e4041121b2656e4/src/main/java/org/xbill/DNS/SetResponse.java#L130-L132
689c8echttps://redirect.github.com/dnsjava/dnsjava/commit/689c8ec9f1b49b74c18308c00e4041121b2656e4
ibauersachshttps://redirect.github.com/ibauersachs
on Jul 26, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13664732950
ibauersachshttps://redirect.github.com/ibauersachs
completedhttps://redirect.github.com/dnsjava/dnsjava/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
345e76chttps://github.com/dnsjava/dnsjava/commit/345e76cc433ef429df862d56e323d8e2babca760
on Jul 27, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13668544904
ibauersachshttps://redirect.github.com/ibauersachs
v3.6https://github.com/dnsjava/dnsjava/milestone/14
v3.6.1https://github.com/dnsjava/dnsjava/milestone/18
on Jul 27, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13668548712
spweihttps://redirect.github.com/spwei
on Jul 30, 2024https://github.com/dnsjava/dnsjava/issues/316#event-13688653636
Properly handle cached xNAME responses in LookupSessionhttps://github.com/spwei/dnsjava/commit/345e76cc433ef429df862d56e323d8e2babca760
https://docs.github.com/articles/closing-issues-via-commit-messages
345e76chttps://github.com/spwei/dnsjava/commit/345e76cc433ef429df862d56e323d8e2babca760
Sign up for freehttps://redirect.github.com/signup?return_to=https://github.com/dnsjava/dnsjava/issues/316
Sign in to commenthttps://redirect.github.com/login?return_to=https://github.com/dnsjava/dnsjava/issues/316
ibauersachshttps://redirect.github.com/ibauersachs
bughttps://github.com/dnsjava/dnsjava/issues?q=state%3Aopen%20label%3A%22bug%22
v3.6.1https://github.com/dnsjava/dnsjava/milestone/18
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.