Title: Relative $ORIGIN in a zone file is resolved against the root instead of the current origin · Issue #431 · dnsjava/dnsjava · GitHub
Open Graph Title: Relative $ORIGIN in a zone file is resolved against the root instead of the current origin · Issue #431 · dnsjava/dnsjava
X Title: Relative $ORIGIN in a zone file is resolved against the root instead of the current origin · Issue #431 · dnsjava/dnsjava
Description: Master resolves a relative name in a $ORIGIN directive against the root zone instead of against the current origin. The same applies to the optional origin argument of $INCLUDE. RFC 1035, Section 5.1: "Domain names that do not end in a d...
Open Graph Description: Master resolves a relative name in a $ORIGIN directive against the root zone instead of against the current origin. The same applies to the optional origin argument of $INCLUDE. RFC 1035, Section 5...
X Description: Master resolves a relative name in a $ORIGIN directive against the root zone instead of against the current origin. The same applies to the optional origin argument of $INCLUDE. RFC 1035, Section 5...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/431
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Relative $ORIGIN in a zone file is resolved against the root instead of the current origin","articleBody":"`Master` resolves a relative name in a `$ORIGIN` directive against the root zone instead of against the current origin. The same applies to the optional origin argument of `$INCLUDE`.\n\nRFC 1035, Section 5.1: \"Domain names that do not end in a dot are called relative; the actual domain name is the concatenation of the relative part with an origin specified in a $ORIGIN, $INCLUDE, or as an argument to the master file loading routine.\" BIND appends the current origin to a relative `$ORIGIN` as well.\n\n### Steps to reproduce\n\n```java\nString zone = \"$ORIGIN sub\\na 3600 IN A 192.0.2.1\\n\";\ntry (Master m = new Master(new ByteArrayInputStream(zone.getBytes()), Name.fromString(\"example.com.\"))) {\n System.out.println(m.nextRecord().getName());\n}\n```\n\n### Expected result\n\n`a.sub.example.com.`\n\n### Actual result\n\n`a.sub.`\n\nVersion: 3.7.1 and current master (9e26eba).","author":{"url":"https://github.com/RaphaelFakhri","@type":"Person","name":"RaphaelFakhri"},"datePublished":"2026-11-03T15:45:08Z","url":"https://github.com/dnsjava/dnsjava/issues/431"}
| 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:3e8eb58c-467e-c46d-1d9d-7a213edf250f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF94:107A1:B6ADA:F3F59:6B060D5C |
| html-safe-nonce | 89d22eac99e7d1e5d91c8fb96f891cddd3d28c91b4e6a4b006a707f495985bfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjk0OjEwN0ExOkI2QURBOkYzRjU5OjZCMDYwRDVDIiwidmlzaXRvcl9pZCI6IjkxOTQ5NzI3Mzk5MzE2MDYzNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c37f02fb4e1c7c1b57dfc9d6a3beead087086c1211df94977c24f26e37408cb6 |
| hovercard-subject-tag | issue:6186020830 |
| 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/431/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68b9f03f90184f19346fbc1ac52a32c86c0d9932eb97351739d039706eeca8ea/dnsjava/dnsjava/issues/431 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68b9f03f90184f19346fbc1ac52a32c86c0d9932eb97351739d039706eeca8ea/dnsjava/dnsjava/issues/431 |
| og:image:alt | Master resolves a relative name in a $ORIGIN directive against the root zone instead of against the current origin. The same applies to the optional origin argument of $INCLUDE. RFC 1035, Section 5... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RaphaelFakhri |
| hostname | github.com |
| expected-hostname | github.com |
| None | e58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9 |
| 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 | 23517473abc6d5da019b4958bd421644e98a418b |
| 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