domain_name 0.6.20260921 → 0.7.20261031

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a0b71ccec77c247036b76c91780e64f983cea260cdf0584e72ebe2347c3ec9d
4
- data.tar.gz: 8e1a83de91eb9fc6dd5dd9b413adc76fba858cff20612d126f697de6c72501e7
3
+ metadata.gz: 908bbb53458a45429a63cb9866d20a400c701a158d283e8948e452e0308040d5
4
+ data.tar.gz: e67b99f7f0dfa76def675531e385a29d2ed2e00e347a1cc03b9831c5befb1dbf
5
5
  SHA512:
6
- metadata.gz: c68b7731ff6ebcdb3ec40ad7a608b57f4ed5190e2aff81305374348d44b7c6c3e66924fc85fcba0787483178f0d5640f31f1319c9393b92c7e9fc77b412b335f
7
- data.tar.gz: 2b0b189d98a2dc22be7ed33d8a1826bdf75ba485262a37f1dc12cb3009644b348ee751ce04ef581b797019ad5990c27c336e2f795fc29b494a7c3f7c815ddd03
6
+ metadata.gz: 29acf8bb02097e8a812d84b2ed7a83c495ad796eb66a9753ae302fa19454e02e01855560b95baddaca1d7d03e542db282efd719d894161a3548f7510452a57d4
7
+ data.tar.gz: 31a6c4ac0ed8a82120d9db5605c6ff2a24eefbcc2805be15ca3d5e3d0b0c6f30a7f582d72943302f1ba61088dec979b7afd7ccc83d259762c6d81f29539224de
data/.github/mergify.yml CHANGED
@@ -1,9 +1,7 @@
1
+ extends: .github
2
+
1
3
  queue_rules:
2
4
  - name: dependency-updates
3
- batch_size: 5
4
- batch_max_wait_time: 10 min
5
- checks_timeout: auto
6
- merge_method: merge-batch
7
5
  queue_conditions:
8
6
  - base = master
9
7
  - author ~= ^(dependabot|renovate)\[bot\]$
@@ -25,4 +23,3 @@ merge_protections_settings:
25
23
  - -conflict
26
24
  - "#approved-reviews-by >= 1"
27
25
  - check-success = Test
28
- reporting_method: check-runs
@@ -11,15 +11,28 @@
11
11
  schedule: ["after 9am on friday", "before 6pm on friday"],
12
12
  rebaseWhen: "behind-base-branch",
13
13
  lockFileMaintenance: {
14
- enabled: true,
15
- labels: ["dependencies"],
16
- schedule: ["after 9am on friday", "before 6pm on friday"],
14
+ enabled: false,
17
15
  },
18
16
  vulnerabilityAlerts: {
19
17
  enabled: true,
20
18
  labels: ["dependencies", "security"],
21
19
  },
22
20
  packageRules: [
21
+ {
22
+ "matchManagers": [
23
+ "github-actions"
24
+ ],
25
+ "matchDepTypes": [
26
+ "action"
27
+ ],
28
+ "matchFileNames": [
29
+ ".github/workflows/ci.yml",
30
+ ".github/workflows/publish-gem.yml",
31
+ ".github/workflows/update-public-suffix-list.yml",
32
+ ".github/workflows/actions-lock.yml"
33
+ ],
34
+ "pinDigests": false
35
+ },
23
36
  {
24
37
  matchUpdateTypes: ["major"],
25
38
  addLabels: ["dependencies:major"],
@@ -0,0 +1,29 @@
1
+ name: Verify action lockfile
2
+ on:
3
+ pull_request: null
4
+ push:
5
+ branches:
6
+ - master
7
+ permissions:
8
+ contents: read
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11
+ cancel-in-progress: true
12
+ jobs:
13
+ verify:
14
+ runs-on: ubuntu-latest
15
+ timeout-minutes: 10
16
+ steps:
17
+ - name: Harden Runner
18
+ uses: step-security/harden-runner@v2.22.2
19
+ with:
20
+ egress-policy: audit
21
+ - uses: actions/checkout@v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+ - name: Verify workflow dependencies
25
+ env:
26
+ GH_TOKEN: ${{ github.token }}
27
+ run: |
28
+ gh extension install github/gh-actions-lock --pin v0.4.0
29
+ gh actions-lock --verify
@@ -0,0 +1,55 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/actions-lock.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'step-security/harden-runner@v2.22.2'
9
+ '.github/workflows/ci.yml':
10
+ - 'actions/checkout@v7.0.1'
11
+ - 'ruby/setup-ruby@v1.334.0'
12
+ - 'step-security/harden-runner@v2.22.2'
13
+ '.github/workflows/publish-gem.yml':
14
+ - 'actions/checkout@v7.0.1'
15
+ - 'ruby/setup-ruby@v1.334.0'
16
+ - 'rubygems/release-gem@v1.4.1'
17
+ - 'step-security/harden-runner@v2.22.2'
18
+ '.github/workflows/update-public-suffix-list.yml':
19
+ - 'actions/checkout@v7.0.1'
20
+ - 'peter-evans/create-pull-request@v8.1.1'
21
+ - 'ruby/setup-ruby@v1.334.0'
22
+ - 'step-security/harden-runner@v2.22.2'
23
+ dependencies:
24
+ 'actions/checkout@v7.0.1':
25
+ ref: 'v7.0.1'
26
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
27
+ owner_id: 44036562
28
+ repo_id: 197814629
29
+ 'peter-evans/create-pull-request@v8.1.1':
30
+ ref: 'v8.1.1'
31
+ commit: 'sha1-5f6978faf089d4d20b00c7766989d076bb2fc7f1'
32
+ owner_id: 18365890
33
+ repo_id: 197176365
34
+ 'ruby/setup-ruby@v1.334.0':
35
+ ref: 'v1.334.0'
36
+ commit: 'sha1-26e5b7d197ebf60545ee9667bcbace0be11ccaec'
37
+ owner_id: 210414
38
+ repo_id: 231208785
39
+ 'rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a':
40
+ ref: 'v2.1.0'
41
+ commit: 'sha1-dc5a8d8553e6ee01fc26761a49e99e733d17954a'
42
+ owner_id: 208761
43
+ repo_id: 631633510
44
+ 'rubygems/release-gem@v1.4.1':
45
+ ref: 'v1.4.1'
46
+ commit: 'sha1-7f9650160c1a4e7989fdc9855807bdbd421d8b6b'
47
+ owner_id: 208761
48
+ repo_id: 731435765
49
+ uses:
50
+ - 'rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a'
51
+ 'step-security/harden-runner@v2.22.2':
52
+ ref: 'v2.22.2'
53
+ commit: 'sha1-dc2769abcc0fcfbadfc1df54081c1608579ef6b2'
54
+ owner_id: 88700172
55
+ repo_id: 422287306
@@ -34,17 +34,17 @@ jobs:
34
34
 
35
35
  steps:
36
36
  - name: Harden Runner
37
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
37
+ uses: step-security/harden-runner@v2.22.2
38
38
  with:
39
39
  egress-policy: audit
40
40
 
41
41
  - name: Check out
42
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
42
+ uses: actions/checkout@v7.0.1
43
43
  with:
44
44
  persist-credentials: false
45
45
 
46
46
  - name: Set up Ruby
47
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
47
+ uses: ruby/setup-ruby@v1.334.0
48
48
  with:
49
49
  ruby-version: ${{matrix.ruby}}
50
50
 
@@ -32,7 +32,7 @@ jobs:
32
32
 
33
33
  steps:
34
34
  - name: Harden Runner
35
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
35
+ uses: step-security/harden-runner@v2.22.2
36
36
  with:
37
37
  egress-policy: audit
38
38
 
@@ -73,20 +73,21 @@ jobs:
73
73
 
74
74
  environment:
75
75
  name: rubygems.org
76
- url: https://rubygems.org/gems/domain_name
76
+ deployment: false
77
77
 
78
78
  permissions:
79
79
  contents: write
80
+ deployments: write
80
81
  id-token: write
81
82
 
82
83
  steps:
83
84
  - name: Harden Runner
84
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
85
+ uses: step-security/harden-runner@v2.22.2
85
86
  with:
86
87
  egress-policy: audit
87
88
 
88
89
  - name: Check out release commit
89
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
90
+ uses: actions/checkout@v7.0.1
90
91
  with:
91
92
  fetch-depth: 0
92
93
  persist-credentials: false
@@ -108,6 +109,7 @@ jobs:
108
109
  tag="v${version}"
109
110
  fi
110
111
  echo "tag=$tag" >> "$GITHUB_OUTPUT"
112
+ echo "version=$version" >> "$GITHUB_OUTPUT"
111
113
 
112
114
  - name: Ensure release tag
113
115
  env:
@@ -128,7 +130,7 @@ jobs:
128
130
  fi
129
131
 
130
132
  - name: Set up Ruby
131
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
133
+ uses: ruby/setup-ruby@v1.334.0
132
134
  with:
133
135
  ruby-version: ruby
134
136
 
@@ -146,8 +148,53 @@ jobs:
146
148
  version="$(ruby -Ilib -e 'require "domain_name/version"; print DomainName::VERSION')"
147
149
  test "v${version}" = "$TAG"
148
150
 
151
+ # workflow_run uses the default branch SHA, so record the release tag explicitly.
152
+ - name: Record deployment start
153
+ id: deployment
154
+ env:
155
+ GH_TOKEN: ${{ github.token }}
156
+ TAG: ${{ steps.release.outputs.tag }}
157
+ VERSION: ${{ steps.release.outputs.version }}
158
+ run: |
159
+ set -euo pipefail
160
+ deployment_id="$(gh api --method POST "repos/${GITHUB_REPOSITORY}/deployments" \
161
+ --raw-field "ref=$TAG" \
162
+ --raw-field environment=rubygems.org \
163
+ --raw-field "description=Publish domain_name $VERSION" \
164
+ --field auto_merge=false \
165
+ --field 'required_contexts[]' \
166
+ --field production_environment=true \
167
+ --jq '.id')"
168
+ echo "id=$deployment_id" >> "$GITHUB_OUTPUT"
169
+ gh api --method POST "repos/${GITHUB_REPOSITORY}/deployments/${deployment_id}/statuses" \
170
+ --raw-field state=in_progress \
171
+ --raw-field "log_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
172
+ --field auto_inactive=false > /dev/null
173
+
149
174
  - name: Publish to RubyGems
150
- uses: rubygems/release-gem@7f9650160c1a4e7989fdc9855807bdbd421d8b6b # v1.4.1
175
+ id: publish
176
+ uses: rubygems/release-gem@v1.4.1
177
+
178
+ - name: Record deployment result
179
+ if: ${{ always() && steps.deployment.outputs.id != '' }}
180
+ env:
181
+ GH_TOKEN: ${{ github.token }}
182
+ DEPLOYMENT_ID: ${{ steps.deployment.outputs.id }}
183
+ PUBLISH_OUTCOME: ${{ steps.publish.outcome }}
184
+ VERSION: ${{ steps.release.outputs.version }}
185
+ run: |
186
+ set -euo pipefail
187
+ case "$PUBLISH_OUTCOME" in
188
+ success) state=success ;;
189
+ cancelled) state=error ;;
190
+ *) state=failure ;;
191
+ esac
192
+ gh api --method POST "repos/${GITHUB_REPOSITORY}/deployments/${DEPLOYMENT_ID}/statuses" \
193
+ --raw-field "state=$state" \
194
+ --raw-field "description=RubyGems publish: $PUBLISH_OUTCOME" \
195
+ --raw-field "environment_url=https://rubygems.org/gems/domain_name/versions/${VERSION}" \
196
+ --raw-field "log_url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
197
+ --field auto_inactive=false > /dev/null
151
198
 
152
199
  - name: Create GitHub release
153
200
  env:
@@ -24,17 +24,17 @@ jobs:
24
24
 
25
25
  steps:
26
26
  - name: Harden Runner
27
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
27
+ uses: step-security/harden-runner@v2.22.2
28
28
  with:
29
29
  egress-policy: audit
30
30
 
31
31
  - name: Check out
32
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
+ uses: actions/checkout@v7.0.1
33
33
  with:
34
34
  persist-credentials: false
35
35
 
36
36
  - name: Set up Ruby
37
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
37
+ uses: ruby/setup-ruby@v1.334.0
38
38
  with:
39
39
  bundler-cache: true
40
40
  ruby-version: ruby
@@ -67,7 +67,7 @@ jobs:
67
67
  - name: Create pull request
68
68
  if: steps.changes.outputs.changed == 'true'
69
69
  id: pull-request
70
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
70
+ uses: peter-evans/create-pull-request@v8.1.1
71
71
  with:
72
72
  add-paths: |
73
73
  CHANGELOG.md
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.7.20261031](https://github.com/knu/ruby-domain_name/tree/v0.7.20261031) (2026-11-02)
4
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.7.20261007...v0.7.20261031)
5
+
6
+ - Update the eTLD database to 2026-10-31 14:17:35 UTC
7
+
8
+ ## [v0.7.20261007](https://github.com/knu/ruby-domain_name/tree/v0.7.20261007) (2026-10-13)
9
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20260921...v0.7.20261007)
10
+
11
+ - Update the eTLD database to 2026-10-07 07:28:30 UTC
12
+ - Reject IDN labels longer than 63 characters in `DomainName::Punycode.encode_hostname` and `decode_hostname`, and thus in `DomainName.new`, to avoid quadratic Punycode processing time
13
+ - Classify a rooted IPv4 address such as `127.0.0.1.` as an IP address instead of a domain name
14
+ - Make `DomainName#==` return false and `DomainName#<=>` return nil for objects that are not strings, instead of raising `TypeError`
15
+
16
+ **Merged pull requests:**
17
+
18
+ - Return conventional results for unrelated comparisons [\#35](https://github.com/knu/ruby-domain_name/pull/35) ([OskarEichler](https://github.com/OskarEichler))
19
+ - Classify rooted IPs and bound hostname normalization [\#41](https://github.com/knu/ruby-domain_name/pull/41) ([OskarEichler](https://github.com/OskarEichler))
20
+
3
21
  ## [v0.6.20260921](https://github.com/knu/ruby-domain_name/tree/v0.6.20260921) (2026-09-24)
4
22
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20260907...v0.6.20260921)
5
23
 
@@ -5,8 +5,8 @@
5
5
  // Please pull this list from, and only from https://publicsuffix.org/list/public_suffix_list.dat,
6
6
  // rather than any other VCS sites. Pulling from any other URL is not guaranteed to be supported.
7
7
 
8
- // VERSION: 2026-09-21_18-50-07_UTC
9
- // COMMIT: 728555a30ef4d40e42a82d5678e5fbad2ad17b26
8
+ // VERSION: 2026-10-31_14-17-28_UTC
9
+ // COMMIT: 73f8cc701c084fe07d888ec552b2f0b53281a674
10
10
 
11
11
  // Instructions on pulling and using this list can be found at https://publicsuffix.org/list/.
12
12
 
@@ -6812,7 +6812,7 @@ org.zw
6812
6812
 
6813
6813
  // newGTLDs
6814
6814
 
6815
- // List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2026-07-24T16:40:16Z
6815
+ // List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2026-10-30T19:51:02Z
6816
6816
  // This list is auto-generated, don't edit it manually.
6817
6817
  // aaa : American Automobile Association, Inc.
6818
6818
  // https://www.iana.org/domains/root/db/aaa.html
@@ -7630,7 +7630,7 @@ coffee
7630
7630
  // https://www.iana.org/domains/root/db/college.html
7631
7631
  college
7632
7632
 
7633
- // cologne : dotKoeln GmbH
7633
+ // cologne : domainworx Service & Management GmbH
7634
7634
  // https://www.iana.org/domains/root/db/cologne.html
7635
7635
  cologne
7636
7636
 
@@ -8498,10 +8498,6 @@ healthcare
8498
8498
  // https://www.iana.org/domains/root/db/help.html
8499
8499
  help
8500
8500
 
8501
- // helsinki : City of Helsinki
8502
- // https://www.iana.org/domains/root/db/helsinki.html
8503
- helsinki
8504
-
8505
8501
  // here : Charleston Road Registry Inc.
8506
8502
  // https://www.iana.org/domains/root/db/here.html
8507
8503
  here
@@ -8798,10 +8794,6 @@ jprs
8798
8794
  // https://www.iana.org/domains/root/db/juegos.html
8799
8795
  juegos
8800
8796
 
8801
- // juniper : JUNIPER NETWORKS, INC.
8802
- // https://www.iana.org/domains/root/db/juniper.html
8803
- juniper
8804
-
8805
8797
  // kaufen : Dog Beach, LLC
8806
8798
  // https://www.iana.org/domains/root/db/kaufen.html
8807
8799
  kaufen
@@ -8846,7 +8838,7 @@ kitchen
8846
8838
  // https://www.iana.org/domains/root/db/kiwi.html
8847
8839
  kiwi
8848
8840
 
8849
- // koeln : dotKoeln GmbH
8841
+ // koeln : domainworx Service & Management GmbH
8850
8842
  // https://www.iana.org/domains/root/db/koeln.html
8851
8843
  koeln
8852
8844
 
@@ -10222,7 +10214,7 @@ stada
10222
10214
  // https://www.iana.org/domains/root/db/staples.html
10223
10215
  staples
10224
10216
 
10225
- // star : Star India Private Limited
10217
+ // star : JioStar India Private Limited
10226
10218
  // https://www.iana.org/domains/root/db/star.html
10227
10219
  star
10228
10220
 
@@ -11350,9 +11342,10 @@ barsy.ca
11350
11342
  *.compute.estate
11351
11343
  *.alces.network
11352
11344
 
11353
- // Alibaba Cloud API Gateway
11345
+ // Alibaba
11354
11346
  // Submitted by Alibaba Cloud Security <cloud_product_security_team@alibaba-inc.com>
11355
11347
  alibabacloudcs.com
11348
+ *.ztna-dingtalk.com
11356
11349
  ms.fun
11357
11350
  ms.show
11358
11351
 
@@ -11414,6 +11407,32 @@ execute-api.us-gov-west-1.amazonaws.com
11414
11407
  execute-api.us-west-1.amazonaws.com
11415
11408
  execute-api.us-west-2.amazonaws.com
11416
11409
 
11410
+ // Amazon Bedrock AgentCore Identity Consent Portal
11411
+ // Submitted by AWS Security <psl-maintainers@amazon.com>
11412
+ // Reference: _MPIAF4IUV7E6TWCRJLOA3T4PHY
11413
+ consent-portal.bedrock-agentcore.ap-northeast-1.amazonaws.com
11414
+ consent-portal.bedrock-agentcore.ap-northeast-2.amazonaws.com
11415
+ consent-portal.bedrock-agentcore.ap-south-1.amazonaws.com
11416
+ consent-portal.bedrock-agentcore.ap-south-2.amazonaws.com
11417
+ consent-portal.bedrock-agentcore.ap-southeast-1.amazonaws.com
11418
+ consent-portal.bedrock-agentcore.ap-southeast-2.amazonaws.com
11419
+ consent-portal.bedrock-agentcore.ap-southeast-5.amazonaws.com
11420
+ consent-portal.bedrock-agentcore.ap-southeast-7.amazonaws.com
11421
+ consent-portal.bedrock-agentcore.ca-central-1.amazonaws.com
11422
+ consent-portal.bedrock-agentcore.eu-central-1.amazonaws.com
11423
+ consent-portal.bedrock-agentcore.eu-north-1.amazonaws.com
11424
+ consent-portal.bedrock-agentcore.eu-south-1.amazonaws.com
11425
+ consent-portal.bedrock-agentcore.eu-south-2.amazonaws.com
11426
+ consent-portal.bedrock-agentcore.eu-west-1.amazonaws.com
11427
+ consent-portal.bedrock-agentcore.eu-west-2.amazonaws.com
11428
+ consent-portal.bedrock-agentcore.eu-west-3.amazonaws.com
11429
+ consent-portal.bedrock-agentcore.sa-east-1.amazonaws.com
11430
+ consent-portal.bedrock-agentcore.us-east-1.amazonaws.com
11431
+ consent-portal.bedrock-agentcore.us-east-2.amazonaws.com
11432
+ consent-portal.bedrock-agentcore.us-gov-west-1.amazonaws.com
11433
+ consent-portal.bedrock-agentcore.us-west-1.amazonaws.com
11434
+ consent-portal.bedrock-agentcore.us-west-2.amazonaws.com
11435
+
11417
11436
  // Amazon CloudFront
11418
11437
  // Submitted by Donavan Miller <donavanm@amazon.com>
11419
11438
  // Reference: 54144616-fd49-4435-8535-19c6a601bdb3
@@ -11421,9 +11440,10 @@ cloudfront.net
11421
11440
 
11422
11441
  // Amazon Cognito
11423
11442
  // Submitted by AWS Security <psl-maintainers@amazon.com>
11424
- // Reference: d7d4a954-976e-403e-a010-de9ed0cfbbd1
11443
+ // Reference: dd7b1be3-c336-4750-8e69-85d381b572dd
11425
11444
  auth.af-south-1.amazoncognito.com
11426
11445
  auth.ap-east-1.amazoncognito.com
11446
+ auth.ap-east-2.amazoncognito.com
11427
11447
  auth.ap-northeast-1.amazoncognito.com
11428
11448
  auth.ap-northeast-2.amazoncognito.com
11429
11449
  auth.ap-northeast-3.amazoncognito.com
@@ -11434,6 +11454,7 @@ auth.ap-southeast-2.amazoncognito.com
11434
11454
  auth.ap-southeast-3.amazoncognito.com
11435
11455
  auth.ap-southeast-4.amazoncognito.com
11436
11456
  auth.ap-southeast-5.amazoncognito.com
11457
+ auth.ap-southeast-6.amazoncognito.com
11437
11458
  auth.ap-southeast-7.amazoncognito.com
11438
11459
  auth.ca-central-1.amazoncognito.com
11439
11460
  auth.ca-west-1.amazoncognito.com
@@ -11573,9 +11594,33 @@ emrappui-prod.us-west-2.amazonaws.com
11573
11594
  emrnotebooks-prod.us-west-2.amazonaws.com
11574
11595
  emrstudio-prod.us-west-2.amazonaws.com
11575
11596
 
11597
+ // Amazon Lightsail
11598
+ // Submitted by AWS Security <psl-maintainers@amazon.com>
11599
+ // Reference: _BNEF4RCADXL7ELNLFZHYJMSMW4
11600
+ amazonlightsail.com
11601
+ *.ap-east-1.cs.amazonlightsail.com
11602
+ *.ap-northeast-1.cs.amazonlightsail.com
11603
+ *.ap-northeast-2.cs.amazonlightsail.com
11604
+ *.ap-south-1.cs.amazonlightsail.com
11605
+ *.ap-southeast-1.cs.amazonlightsail.com
11606
+ *.ap-southeast-2.cs.amazonlightsail.com
11607
+ *.ap-southeast-3.cs.amazonlightsail.com
11608
+ *.ap-southeast-5.cs.amazonlightsail.com
11609
+ *.ca-central-1.cs.amazonlightsail.com
11610
+ *.eu-central-1.cs.amazonlightsail.com
11611
+ *.eu-north-1.cs.amazonlightsail.com
11612
+ *.eu-south-2.cs.amazonlightsail.com
11613
+ *.eu-west-1.cs.amazonlightsail.com
11614
+ *.eu-west-2.cs.amazonlightsail.com
11615
+ *.eu-west-3.cs.amazonlightsail.com
11616
+ *.sa-east-1.cs.amazonlightsail.com
11617
+ *.us-east-1.cs.amazonlightsail.com
11618
+ *.us-east-2.cs.amazonlightsail.com
11619
+ *.us-west-2.cs.amazonlightsail.com
11620
+
11576
11621
  // Amazon Managed Workflows for Apache Airflow
11577
11622
  // Submitted by AWS Security <psl-maintainers@amazon.com>
11578
- // Reference: bfd043cc-2816-451d-894e-612c6b61a438
11623
+ // Reference: _2D43DR7RQE2YAOU6AMDMC65YVY
11579
11624
  *.airflow.af-south-1.on.aws
11580
11625
  *.airflow.ap-east-1.on.aws
11581
11626
  *.airflow.ap-northeast-1.on.aws
@@ -11588,6 +11633,7 @@ emrstudio-prod.us-west-2.amazonaws.com
11588
11633
  *.airflow.ap-southeast-3.on.aws
11589
11634
  *.airflow.ap-southeast-4.on.aws
11590
11635
  *.airflow.ap-southeast-5.on.aws
11636
+ *.airflow.ap-southeast-7.on.aws
11591
11637
  *.airflow.ca-central-1.on.aws
11592
11638
  *.airflow.ca-west-1.on.aws
11593
11639
  *.airflow.eu-central-1.on.aws
@@ -12194,7 +12240,7 @@ awsapps.com
12194
12240
 
12195
12241
  // AWS Elastic Beanstalk
12196
12242
  // Submitted by AWS Security <psl-maintainers@amazon.com>
12197
- // Reference: e4e02a54-eaf9-4fe7-b662-39ccbc011a04
12243
+ // Reference: _CCBN322SBHBCSUGB7BBDVTREDI
12198
12244
  cn-north-1.eb.amazonaws.com.cn
12199
12245
  cn-northwest-1.eb.amazonaws.com.cn
12200
12246
  elasticbeanstalk.com
@@ -12204,13 +12250,18 @@ ap-northeast-1.elasticbeanstalk.com
12204
12250
  ap-northeast-2.elasticbeanstalk.com
12205
12251
  ap-northeast-3.elasticbeanstalk.com
12206
12252
  ap-south-1.elasticbeanstalk.com
12253
+ ap-south-2.elasticbeanstalk.com
12207
12254
  ap-southeast-1.elasticbeanstalk.com
12208
12255
  ap-southeast-2.elasticbeanstalk.com
12209
12256
  ap-southeast-3.elasticbeanstalk.com
12257
+ ap-southeast-4.elasticbeanstalk.com
12210
12258
  ap-southeast-5.elasticbeanstalk.com
12259
+ ap-southeast-6.elasticbeanstalk.com
12211
12260
  ap-southeast-7.elasticbeanstalk.com
12212
12261
  ca-central-1.elasticbeanstalk.com
12262
+ ca-west-1.elasticbeanstalk.com
12213
12263
  eu-central-1.elasticbeanstalk.com
12264
+ eu-central-2.elasticbeanstalk.com
12214
12265
  eu-north-1.elasticbeanstalk.com
12215
12266
  eu-south-1.elasticbeanstalk.com
12216
12267
  eu-south-2.elasticbeanstalk.com
@@ -12272,9 +12323,10 @@ lambda-url.us-west-2.on.aws
12272
12323
 
12273
12324
  // AWS Transfer Family web apps
12274
12325
  // Submitted by AWS Security <psl-maintainers@amazon.com>
12275
- // Reference: 9265cdd3-f017-42ab-98bb-08bf427d3fc9
12326
+ // Reference: _PYLGNY4SQAVGHDG4DGP234KPQY
12276
12327
  transfer-webapp.af-south-1.on.aws
12277
12328
  transfer-webapp.ap-east-1.on.aws
12329
+ transfer-webapp.ap-east-2.on.aws
12278
12330
  transfer-webapp.ap-northeast-1.on.aws
12279
12331
  transfer-webapp.ap-northeast-2.on.aws
12280
12332
  transfer-webapp.ap-northeast-3.on.aws
@@ -12285,6 +12337,7 @@ transfer-webapp.ap-southeast-2.on.aws
12285
12337
  transfer-webapp.ap-southeast-3.on.aws
12286
12338
  transfer-webapp.ap-southeast-4.on.aws
12287
12339
  transfer-webapp.ap-southeast-5.on.aws
12340
+ transfer-webapp.ap-southeast-6.on.aws
12288
12341
  transfer-webapp.ap-southeast-7.on.aws
12289
12342
  transfer-webapp.ca-central-1.on.aws
12290
12343
  transfer-webapp.ca-west-1.on.aws
@@ -12311,6 +12364,7 @@ transfer-webapp.us-west-1.on.aws
12311
12364
  transfer-webapp.us-west-2.on.aws
12312
12365
  transfer-webapp.cn-north-1.on.amazonwebservices.com.cn
12313
12366
  transfer-webapp.cn-northwest-1.on.amazonwebservices.com.cn
12367
+ transfer-webapp.eusc-de-east-1.on.amazonwebservices.eu
12314
12368
 
12315
12369
  // eero
12316
12370
  // Submitted by Yue Kang <eero-dynamic-dns@amazon.com>
@@ -12769,8 +12823,10 @@ co.no
12769
12823
  // Combell.com : https://www.combell.com
12770
12824
  // Submitted by Combell Team <support@combell.com>
12771
12825
  webhosting.be
12826
+ site.webhosting.be
12772
12827
  prvw.eu
12773
12828
  hosting-cluster.nl
12829
+ site.hosting-cluster.nl
12774
12830
 
12775
12831
  // Contentful GmbH : https://www.contentful.com
12776
12832
  // Submitted by Contentful Developer Experience Team <prd-ecosystem-dx@contentful.com>
@@ -13734,10 +13790,6 @@ futuremailing.at
13734
13790
  gadget.app
13735
13791
  gadget.host
13736
13792
 
13737
- // GCom Internet : https://www.gcom.net.au
13738
- // Submitted by Leo Julius <support@gcom.net.au>
13739
- aliases121.com
13740
-
13741
13793
  // GDS : https://www.gov.uk/service-manual/technology/managing-domain-names
13742
13794
  // Submitted by Stephen Ford <hostmaster@digital.cabinet-office.gov.uk>
13743
13795
  campaign.gov.uk
@@ -13782,9 +13834,12 @@ gitlab.io
13782
13834
 
13783
13835
  // Gitplac.si : https://gitplac.si
13784
13836
  // Submitted by Aljaž Starc <me@aljaxus.eu>
13785
- gitapp.si
13786
13837
  gitpage.si
13787
13838
 
13839
+ // Glide : https://www.glideapps.com
13840
+ // Submitted by Glide Engineering <engineering@heyglide.com>
13841
+ glideos.app
13842
+
13788
13843
  // Global NOG Alliance : https://nogalliance.org/
13789
13844
  // Submitted by Sander Steffann <sander@nogalliance.org>
13790
13845
  nog.community
@@ -14236,6 +14291,10 @@ home64.de
14236
14291
  ipv64.de
14237
14292
  ipv64.net
14238
14293
 
14294
+ // IQHost / IQ Group : https://iqhost.pl/
14295
+ // Submitted by Adam Buhl <admin@iqhost.pl>
14296
+ iqhs.pl
14297
+
14239
14298
  // ir.md : https://nic.ir.md
14240
14299
  // Submitted by Ali Soizi <info@nic.ir.md>
14241
14300
  ir.md
@@ -14410,10 +14469,6 @@ kiloapps.io
14410
14469
  kinghost.net
14411
14470
  uni5.net
14412
14471
 
14413
- // KnightPoint Systems, LLC : http://www.knightpoint.com/
14414
- // Submitted by Roy Keene <rkeene@knightpoint.com>
14415
- knightpoint.systems
14416
-
14417
14472
  // KoobinEvent, SL : https://www.koobin.com
14418
14473
  // Submitted by Iván Oliva <ivan.oliva@koobin.com>
14419
14474
  koobin.events
@@ -14423,10 +14478,6 @@ koobin.events
14423
14478
  webthings.io
14424
14479
  krellian.net
14425
14480
 
14426
- // KUROKU LTD : https://kuroku.ltd/
14427
- // Submitted by DisposaBoy <security@oya.to>
14428
- oya.to
14429
-
14430
14481
  // KV GmbH : https://www.nic.co.de
14431
14482
  // Submitted by KV GmbH <registry@kv-gmbh.de>
14432
14483
  // Abuse reports to <registry@kv-gmbh.de>
@@ -14863,6 +14914,48 @@ cust.retrosnub.co.uk
14863
14914
  // Submitted by Paulus Schoutsen <infra@nabucasa.com>
14864
14915
  ui.nabu.casa
14865
14916
 
14917
+ // NAVER Cloud : https://www.ncloud.com
14918
+ // Submitted by Storage Team <dl_ns_psl@navercorp.com>
14919
+ kr.object.fin-ncloudstorage.com
14920
+ s3-website.kr.object.fin-ncloudstorage.com
14921
+ kr.object.private.fin-ncloudstorage.com
14922
+ kr.gov-ncloudstorage.com
14923
+ kr-private.gov-ncloudstorage.com
14924
+ kr.object.gov-ncloudstorage.com
14925
+ s3-website.kr.object.gov-ncloudstorage.com
14926
+ krs.object.gov-ncloudstorage.com
14927
+ s3-website.krs.object.gov-ncloudstorage.com
14928
+ kr.object.private.gov-ncloudstorage.com
14929
+ krs.object.private.gov-ncloudstorage.com
14930
+ kr.objectstorage.ncloud.com
14931
+ sg.objectstorage.ncloud.com
14932
+ kr.ncloudstorage.com
14933
+ kr-naver.ncloudstorage.com
14934
+ kr-naver-dev.ncloudstorage.com
14935
+ kr-private.ncloudstorage.com
14936
+ de.object.ncloudstorage.com
14937
+ s3-website.de.object.ncloudstorage.com
14938
+ kr.object.ncloudstorage.com
14939
+ s3-website.kr.object.ncloudstorage.com
14940
+ sg.object.ncloudstorage.com
14941
+ s3-website.sg.object.ncloudstorage.com
14942
+ us.object.ncloudstorage.com
14943
+ s3-website.us.object.ncloudstorage.com
14944
+ kr.object.private.ncloudstorage.com
14945
+ sg.object.private.ncloudstorage.com
14946
+ kr.website.ncloudstorage.com
14947
+ kr-naver.website.ncloudstorage.com
14948
+ kr-naver-dev.website.ncloudstorage.com
14949
+ jp.object.ncpstorage.com
14950
+ jp.jp4.object.ncpstorage.com
14951
+ jp.jp5.object.ncpstorage.com
14952
+ kr.object.ncpstorage.com
14953
+ s3-website-jp.object.ncpstorage.com
14954
+ jp.object.private.ncpstorage.com
14955
+ jp.jp4.object.private.ncpstorage.com
14956
+ jp.jp5.object.private.ncpstorage.com
14957
+ kr.object.private.ncpstorage.com
14958
+
14866
14959
  // Needle Tools GmbH : https://needle.tools
14867
14960
  // Submitted by Felix Herbst <security@needle.tools>
14868
14961
  needle.run
@@ -15255,10 +15348,6 @@ mypep.link
15255
15348
  // Submitted by Alec Xiang <security@perplexity.ai>
15256
15349
  pplx.app
15257
15350
 
15258
- // Perspecta : https://perspecta.com/
15259
- // Submitted by Kenneth Van Alstyne <kvanalstyne@perspecta.com>
15260
- perspecta.cloud
15261
-
15262
15351
  // Ping Identity : https://www.pingidentity.com
15263
15352
  // Submitted by Ping Identity <security@pingidentity.com>
15264
15353
  forgeblocks.com
@@ -15475,33 +15564,8 @@ firewalledreplit.co
15475
15564
  id.firewalledreplit.co
15476
15565
  repl.co
15477
15566
  id.repl.co
15478
- replit.dev
15479
- archer.replit.dev
15480
- bones.replit.dev
15481
- canary.replit.dev
15482
- global.replit.dev
15483
- hacker.replit.dev
15484
- id.replit.dev
15485
- janeway.replit.dev
15486
- kim.replit.dev
15487
- kira.replit.dev
15488
- kirk.replit.dev
15489
- odo.replit.dev
15490
- paris.replit.dev
15491
- picard.replit.dev
15492
- pike.replit.dev
15493
- prerelease.replit.dev
15494
- reed.replit.dev
15495
- riker.replit.dev
15496
- sisko.replit.dev
15497
- spock.replit.dev
15498
- staging.replit.dev
15499
- sulu.replit.dev
15500
- tarpit.replit.dev
15501
- teams.replit.dev
15502
- tucker.replit.dev
15503
- wesley.replit.dev
15504
- worf.replit.dev
15567
+ *.replit.dev
15568
+ *.teams.replit.dev
15505
15569
  repl.run
15506
15570
 
15507
15571
  // Resin.io : https://resin.io
@@ -15509,6 +15573,10 @@ repl.run
15509
15573
  resindevice.io
15510
15574
  devices.resinstaging.io
15511
15575
 
15576
+ // Retool : https://retool.com
15577
+ // Submitted by Andrew Guan <security@retool.com>
15578
+ retool.app
15579
+
15512
15580
  // Rico Developments Limited : https://adimo.co
15513
15581
  // Submitted by Colin Brown <hello@adimo.co>
15514
15582
  adimo.co.uk
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DomainName
4
- ETLD_DATA_DATE = '2026-09-21T18:50:24Z'
4
+ ETLD_DATA_DATE = '2026-10-31T14:17:35Z'
5
5
 
6
6
  ETLD_DATA = {
7
7
  "ac" => 0,
@@ -6268,7 +6268,6 @@ class DomainName
6268
6268
  "health" => 0,
6269
6269
  "healthcare" => 0,
6270
6270
  "help" => 0,
6271
- "helsinki" => 0,
6272
6271
  "here" => 0,
6273
6272
  "hermes" => 0,
6274
6273
  "hiphop" => 0,
@@ -6343,7 +6342,6 @@ class DomainName
6343
6342
  "jpmorgan" => 0,
6344
6343
  "jprs" => 0,
6345
6344
  "juegos" => 0,
6346
- "juniper" => 0,
6347
6345
  "kaufen" => 0,
6348
6346
  "kddi" => 0,
6349
6347
  "kerryhotels" => 0,
@@ -7009,6 +7007,7 @@ class DomainName
7009
7007
  "compute.estate" => -1,
7010
7008
  "alces.network" => -1,
7011
7009
  "alibabacloudcs.com" => 0,
7010
+ "ztna-dingtalk.com" => -1,
7012
7011
  "ms.fun" => 0,
7013
7012
  "ms.show" => 0,
7014
7013
  "kasserver.com" => 0,
@@ -7049,9 +7048,32 @@ class DomainName
7049
7048
  "execute-api.us-gov-west-1.amazonaws.com" => 0,
7050
7049
  "execute-api.us-west-1.amazonaws.com" => 0,
7051
7050
  "execute-api.us-west-2.amazonaws.com" => 0,
7051
+ "consent-portal.bedrock-agentcore.ap-northeast-1.amazonaws.com" => 0,
7052
+ "consent-portal.bedrock-agentcore.ap-northeast-2.amazonaws.com" => 0,
7053
+ "consent-portal.bedrock-agentcore.ap-south-1.amazonaws.com" => 0,
7054
+ "consent-portal.bedrock-agentcore.ap-south-2.amazonaws.com" => 0,
7055
+ "consent-portal.bedrock-agentcore.ap-southeast-1.amazonaws.com" => 0,
7056
+ "consent-portal.bedrock-agentcore.ap-southeast-2.amazonaws.com" => 0,
7057
+ "consent-portal.bedrock-agentcore.ap-southeast-5.amazonaws.com" => 0,
7058
+ "consent-portal.bedrock-agentcore.ap-southeast-7.amazonaws.com" => 0,
7059
+ "consent-portal.bedrock-agentcore.ca-central-1.amazonaws.com" => 0,
7060
+ "consent-portal.bedrock-agentcore.eu-central-1.amazonaws.com" => 0,
7061
+ "consent-portal.bedrock-agentcore.eu-north-1.amazonaws.com" => 0,
7062
+ "consent-portal.bedrock-agentcore.eu-south-1.amazonaws.com" => 0,
7063
+ "consent-portal.bedrock-agentcore.eu-south-2.amazonaws.com" => 0,
7064
+ "consent-portal.bedrock-agentcore.eu-west-1.amazonaws.com" => 0,
7065
+ "consent-portal.bedrock-agentcore.eu-west-2.amazonaws.com" => 0,
7066
+ "consent-portal.bedrock-agentcore.eu-west-3.amazonaws.com" => 0,
7067
+ "consent-portal.bedrock-agentcore.sa-east-1.amazonaws.com" => 0,
7068
+ "consent-portal.bedrock-agentcore.us-east-1.amazonaws.com" => 0,
7069
+ "consent-portal.bedrock-agentcore.us-east-2.amazonaws.com" => 0,
7070
+ "consent-portal.bedrock-agentcore.us-gov-west-1.amazonaws.com" => 0,
7071
+ "consent-portal.bedrock-agentcore.us-west-1.amazonaws.com" => 0,
7072
+ "consent-portal.bedrock-agentcore.us-west-2.amazonaws.com" => 0,
7052
7073
  "cloudfront.net" => 0,
7053
7074
  "auth.af-south-1.amazoncognito.com" => 0,
7054
7075
  "auth.ap-east-1.amazoncognito.com" => 0,
7076
+ "auth.ap-east-2.amazoncognito.com" => 0,
7055
7077
  "auth.ap-northeast-1.amazoncognito.com" => 0,
7056
7078
  "auth.ap-northeast-2.amazoncognito.com" => 0,
7057
7079
  "auth.ap-northeast-3.amazoncognito.com" => 0,
@@ -7062,6 +7084,7 @@ class DomainName
7062
7084
  "auth.ap-southeast-3.amazoncognito.com" => 0,
7063
7085
  "auth.ap-southeast-4.amazoncognito.com" => 0,
7064
7086
  "auth.ap-southeast-5.amazoncognito.com" => 0,
7087
+ "auth.ap-southeast-6.amazoncognito.com" => 0,
7065
7088
  "auth.ap-southeast-7.amazoncognito.com" => 0,
7066
7089
  "auth.ca-central-1.amazoncognito.com" => 0,
7067
7090
  "auth.ca-west-1.amazoncognito.com" => 0,
@@ -7192,6 +7215,26 @@ class DomainName
7192
7215
  "emrappui-prod.us-west-2.amazonaws.com" => 0,
7193
7216
  "emrnotebooks-prod.us-west-2.amazonaws.com" => 0,
7194
7217
  "emrstudio-prod.us-west-2.amazonaws.com" => 0,
7218
+ "amazonlightsail.com" => 0,
7219
+ "ap-east-1.cs.amazonlightsail.com" => -1,
7220
+ "ap-northeast-1.cs.amazonlightsail.com" => -1,
7221
+ "ap-northeast-2.cs.amazonlightsail.com" => -1,
7222
+ "ap-south-1.cs.amazonlightsail.com" => -1,
7223
+ "ap-southeast-1.cs.amazonlightsail.com" => -1,
7224
+ "ap-southeast-2.cs.amazonlightsail.com" => -1,
7225
+ "ap-southeast-3.cs.amazonlightsail.com" => -1,
7226
+ "ap-southeast-5.cs.amazonlightsail.com" => -1,
7227
+ "ca-central-1.cs.amazonlightsail.com" => -1,
7228
+ "eu-central-1.cs.amazonlightsail.com" => -1,
7229
+ "eu-north-1.cs.amazonlightsail.com" => -1,
7230
+ "eu-south-2.cs.amazonlightsail.com" => -1,
7231
+ "eu-west-1.cs.amazonlightsail.com" => -1,
7232
+ "eu-west-2.cs.amazonlightsail.com" => -1,
7233
+ "eu-west-3.cs.amazonlightsail.com" => -1,
7234
+ "sa-east-1.cs.amazonlightsail.com" => -1,
7235
+ "us-east-1.cs.amazonlightsail.com" => -1,
7236
+ "us-east-2.cs.amazonlightsail.com" => -1,
7237
+ "us-west-2.cs.amazonlightsail.com" => -1,
7195
7238
  "airflow.af-south-1.on.aws" => -1,
7196
7239
  "airflow.ap-east-1.on.aws" => -1,
7197
7240
  "airflow.ap-northeast-1.on.aws" => -1,
@@ -7204,6 +7247,7 @@ class DomainName
7204
7247
  "airflow.ap-southeast-3.on.aws" => -1,
7205
7248
  "airflow.ap-southeast-4.on.aws" => -1,
7206
7249
  "airflow.ap-southeast-5.on.aws" => -1,
7250
+ "airflow.ap-southeast-7.on.aws" => -1,
7207
7251
  "airflow.ca-central-1.on.aws" => -1,
7208
7252
  "airflow.ca-west-1.on.aws" => -1,
7209
7253
  "airflow.eu-central-1.on.aws" => -1,
@@ -7772,13 +7816,18 @@ class DomainName
7772
7816
  "ap-northeast-2.elasticbeanstalk.com" => 0,
7773
7817
  "ap-northeast-3.elasticbeanstalk.com" => 0,
7774
7818
  "ap-south-1.elasticbeanstalk.com" => 0,
7819
+ "ap-south-2.elasticbeanstalk.com" => 0,
7775
7820
  "ap-southeast-1.elasticbeanstalk.com" => 0,
7776
7821
  "ap-southeast-2.elasticbeanstalk.com" => 0,
7777
7822
  "ap-southeast-3.elasticbeanstalk.com" => 0,
7823
+ "ap-southeast-4.elasticbeanstalk.com" => 0,
7778
7824
  "ap-southeast-5.elasticbeanstalk.com" => 0,
7825
+ "ap-southeast-6.elasticbeanstalk.com" => 0,
7779
7826
  "ap-southeast-7.elasticbeanstalk.com" => 0,
7780
7827
  "ca-central-1.elasticbeanstalk.com" => 0,
7828
+ "ca-west-1.elasticbeanstalk.com" => 0,
7781
7829
  "eu-central-1.elasticbeanstalk.com" => 0,
7830
+ "eu-central-2.elasticbeanstalk.com" => 0,
7782
7831
  "eu-north-1.elasticbeanstalk.com" => 0,
7783
7832
  "eu-south-1.elasticbeanstalk.com" => 0,
7784
7833
  "eu-south-2.elasticbeanstalk.com" => 0,
@@ -7823,6 +7872,7 @@ class DomainName
7823
7872
  "private.repost.aws" => -1,
7824
7873
  "transfer-webapp.af-south-1.on.aws" => 0,
7825
7874
  "transfer-webapp.ap-east-1.on.aws" => 0,
7875
+ "transfer-webapp.ap-east-2.on.aws" => 0,
7826
7876
  "transfer-webapp.ap-northeast-1.on.aws" => 0,
7827
7877
  "transfer-webapp.ap-northeast-2.on.aws" => 0,
7828
7878
  "transfer-webapp.ap-northeast-3.on.aws" => 0,
@@ -7833,6 +7883,7 @@ class DomainName
7833
7883
  "transfer-webapp.ap-southeast-3.on.aws" => 0,
7834
7884
  "transfer-webapp.ap-southeast-4.on.aws" => 0,
7835
7885
  "transfer-webapp.ap-southeast-5.on.aws" => 0,
7886
+ "transfer-webapp.ap-southeast-6.on.aws" => 0,
7836
7887
  "transfer-webapp.ap-southeast-7.on.aws" => 0,
7837
7888
  "transfer-webapp.ca-central-1.on.aws" => 0,
7838
7889
  "transfer-webapp.ca-west-1.on.aws" => 0,
@@ -7859,6 +7910,7 @@ class DomainName
7859
7910
  "transfer-webapp.us-west-2.on.aws" => 0,
7860
7911
  "transfer-webapp.cn-north-1.on.amazonwebservices.com.cn" => 0,
7861
7912
  "transfer-webapp.cn-northwest-1.on.amazonwebservices.com.cn" => 0,
7913
+ "transfer-webapp.eusc-de-east-1.on.amazonwebservices.eu" => 0,
7862
7914
  "eero.online" => 0,
7863
7915
  "eero-stage.online" => 0,
7864
7916
  "opentunnel.xyz" => 0,
@@ -8088,8 +8140,10 @@ class DomainName
8088
8140
  "co.no" => 0,
8089
8141
  "devinapps.com" => -1,
8090
8142
  "webhosting.be" => 0,
8143
+ "site.webhosting.be" => 0,
8091
8144
  "prvw.eu" => 0,
8092
8145
  "hosting-cluster.nl" => 0,
8146
+ "site.hosting-cluster.nl" => 0,
8093
8147
  "ctfcloud.net" => 0,
8094
8148
  "convex.app" => 0,
8095
8149
  "convex.cloud" => 0,
@@ -8782,7 +8836,6 @@ class DomainName
8782
8836
  "statics.cloud" => -1,
8783
8837
  "gadget.app" => 0,
8784
8838
  "gadget.host" => 0,
8785
- "aliases121.com" => 0,
8786
8839
  "campaign.gov.uk" => 0,
8787
8840
  "service.gov.uk" => 0,
8788
8841
  "independent-commission.uk" => 0,
@@ -8804,8 +8857,8 @@ class DomainName
8804
8857
  "githubpreview.dev" => 0,
8805
8858
  "github.io" => 0,
8806
8859
  "gitlab.io" => 0,
8807
- "gitapp.si" => 0,
8808
8860
  "gitpage.si" => 0,
8861
+ "glideos.app" => 0,
8809
8862
  "nog.community" => 0,
8810
8863
  "co.ro" => 0,
8811
8864
  "shop.ro" => 0,
@@ -9081,6 +9134,7 @@ class DomainName
9081
9134
  "home64.de" => 0,
9082
9135
  "ipv64.de" => 0,
9083
9136
  "ipv64.net" => 0,
9137
+ "iqhs.pl" => 0,
9084
9138
  "ir.md" => 0,
9085
9139
  "is-a-good.dev" => 0,
9086
9140
  "iservschule.de" => 0,
@@ -9198,11 +9252,9 @@ class DomainName
9198
9252
  "kiloapps.io" => 0,
9199
9253
  "kinghost.net" => 0,
9200
9254
  "uni5.net" => 0,
9201
- "knightpoint.systems" => 0,
9202
9255
  "koobin.events" => 0,
9203
9256
  "webthings.io" => 0,
9204
9257
  "krellian.net" => 0,
9205
- "oya.to" => 0,
9206
9258
  "co.de" => 0,
9207
9259
  "shiptoday.app" => 0,
9208
9260
  "shiptoday.build" => 0,
@@ -9475,6 +9527,45 @@ class DomainName
9475
9527
  "yali.mythic-beasts.com" => 0,
9476
9528
  "cust.retrosnub.co.uk" => 0,
9477
9529
  "ui.nabu.casa" => 0,
9530
+ "kr.object.fin-ncloudstorage.com" => 0,
9531
+ "s3-website.kr.object.fin-ncloudstorage.com" => 0,
9532
+ "kr.object.private.fin-ncloudstorage.com" => 0,
9533
+ "kr.gov-ncloudstorage.com" => 0,
9534
+ "kr-private.gov-ncloudstorage.com" => 0,
9535
+ "kr.object.gov-ncloudstorage.com" => 0,
9536
+ "s3-website.kr.object.gov-ncloudstorage.com" => 0,
9537
+ "krs.object.gov-ncloudstorage.com" => 0,
9538
+ "s3-website.krs.object.gov-ncloudstorage.com" => 0,
9539
+ "kr.object.private.gov-ncloudstorage.com" => 0,
9540
+ "krs.object.private.gov-ncloudstorage.com" => 0,
9541
+ "kr.objectstorage.ncloud.com" => 0,
9542
+ "sg.objectstorage.ncloud.com" => 0,
9543
+ "kr.ncloudstorage.com" => 0,
9544
+ "kr-naver.ncloudstorage.com" => 0,
9545
+ "kr-naver-dev.ncloudstorage.com" => 0,
9546
+ "kr-private.ncloudstorage.com" => 0,
9547
+ "de.object.ncloudstorage.com" => 0,
9548
+ "s3-website.de.object.ncloudstorage.com" => 0,
9549
+ "kr.object.ncloudstorage.com" => 0,
9550
+ "s3-website.kr.object.ncloudstorage.com" => 0,
9551
+ "sg.object.ncloudstorage.com" => 0,
9552
+ "s3-website.sg.object.ncloudstorage.com" => 0,
9553
+ "us.object.ncloudstorage.com" => 0,
9554
+ "s3-website.us.object.ncloudstorage.com" => 0,
9555
+ "kr.object.private.ncloudstorage.com" => 0,
9556
+ "sg.object.private.ncloudstorage.com" => 0,
9557
+ "kr.website.ncloudstorage.com" => 0,
9558
+ "kr-naver.website.ncloudstorage.com" => 0,
9559
+ "kr-naver-dev.website.ncloudstorage.com" => 0,
9560
+ "jp.object.ncpstorage.com" => 0,
9561
+ "jp.jp4.object.ncpstorage.com" => 0,
9562
+ "jp.jp5.object.ncpstorage.com" => 0,
9563
+ "kr.object.ncpstorage.com" => 0,
9564
+ "s3-website-jp.object.ncpstorage.com" => 0,
9565
+ "jp.object.private.ncpstorage.com" => 0,
9566
+ "jp.jp4.object.private.ncpstorage.com" => 0,
9567
+ "jp.jp5.object.private.ncpstorage.com" => 0,
9568
+ "kr.object.private.ncpstorage.com" => 0,
9478
9569
  "needle.run" => 0,
9479
9570
  "co.site" => 0,
9480
9571
  "cloud.nospamproxy.com" => 0,
@@ -9712,7 +9803,6 @@ class DomainName
9712
9803
  "gl.srv.us" => 0,
9713
9804
  "mypep.link" => 0,
9714
9805
  "pplx.app" => 0,
9715
- "perspecta.cloud" => 0,
9716
9806
  "forgeblocks.com" => 0,
9717
9807
  "id.forgerock.io" => 0,
9718
9808
  "support.site" => 0,
@@ -9798,36 +9888,12 @@ class DomainName
9798
9888
  "id.firewalledreplit.co" => 0,
9799
9889
  "repl.co" => 0,
9800
9890
  "id.repl.co" => 0,
9801
- "replit.dev" => 0,
9802
- "archer.replit.dev" => 0,
9803
- "bones.replit.dev" => 0,
9804
- "canary.replit.dev" => 0,
9805
- "global.replit.dev" => 0,
9806
- "hacker.replit.dev" => 0,
9807
- "id.replit.dev" => 0,
9808
- "janeway.replit.dev" => 0,
9809
- "kim.replit.dev" => 0,
9810
- "kira.replit.dev" => 0,
9811
- "kirk.replit.dev" => 0,
9812
- "odo.replit.dev" => 0,
9813
- "paris.replit.dev" => 0,
9814
- "picard.replit.dev" => 0,
9815
- "pike.replit.dev" => 0,
9816
- "prerelease.replit.dev" => 0,
9817
- "reed.replit.dev" => 0,
9818
- "riker.replit.dev" => 0,
9819
- "sisko.replit.dev" => 0,
9820
- "spock.replit.dev" => 0,
9821
- "staging.replit.dev" => 0,
9822
- "sulu.replit.dev" => 0,
9823
- "tarpit.replit.dev" => 0,
9824
- "teams.replit.dev" => 0,
9825
- "tucker.replit.dev" => 0,
9826
- "wesley.replit.dev" => 0,
9827
- "worf.replit.dev" => 0,
9891
+ "replit.dev" => -1,
9892
+ "teams.replit.dev" => -1,
9828
9893
  "repl.run" => 0,
9829
9894
  "resindevice.io" => 0,
9830
9895
  "devices.resinstaging.io" => 0,
9896
+ "retool.app" => 0,
9831
9897
  "adimo.co.uk" => 0,
9832
9898
  "itcouldbewor.se" => 0,
9833
9899
  "aus.basketball" => 0,
@@ -92,6 +92,9 @@ class DomainName
92
92
  DOT = '.'
93
93
  PREFIX = 'xn--'
94
94
 
95
+ # The maximum length of a label in a hostname (RFC 1035)
96
+ MAX_LABEL_LENGTH = 63
97
+
95
98
  # Most errors we raise are basically kind of ArgumentError.
96
99
  class ArgumentError < ::ArgumentError; end
97
100
  class BufferOverflowError < ArgumentError; end
@@ -177,13 +180,22 @@ class DomainName
177
180
  output
178
181
  end
179
182
 
180
- # Encode a hostname using IDN/Punycode algorithms
183
+ # Encode a hostname using IDN/Punycode algorithms. Raises
184
+ # ArgumentError if an encoded label would exceed
185
+ # MAX_LABEL_LENGTH.
181
186
  def encode_hostname(hostname)
182
187
  hostname.match(RE_NONBASIC) or return hostname
183
188
 
184
189
  hostname.split(DOT).map { |name|
185
190
  if name.match(RE_NONBASIC)
186
- PREFIX + encode(name)
191
+ # Encoding takes quadratic time, and the encoded label is
192
+ # always longer than the input by at least the prefix
193
+ name.length + PREFIX.length > MAX_LABEL_LENGTH and
194
+ raise ArgumentError, "Label is too long: #{name.length} characters"
195
+ label = PREFIX + encode(name)
196
+ label.length > MAX_LABEL_LENGTH and
197
+ raise ArgumentError, "Encoded label is too long: #{label.length} characters"
198
+ label
187
199
  else
188
200
  name
189
201
  end
@@ -272,9 +284,13 @@ class DomainName
272
284
  output.pack('U*')
273
285
  end
274
286
 
275
- # Decode a hostname using IDN/Punycode algorithms
287
+ # Decode a hostname using IDN/Punycode algorithms. Raises
288
+ # ArgumentError if an encoded label exceeds MAX_LABEL_LENGTH.
276
289
  def decode_hostname(hostname)
277
290
  hostname.gsub(/(\A|#{Regexp.quote(DOT)})#{Regexp.quote(PREFIX)}([^#{Regexp.quote(DOT)}]*)/o) {
291
+ length = PREFIX.length + $2.length
292
+ length > MAX_LABEL_LENGTH and
293
+ raise ArgumentError, "Encoded label is too long: #{length} characters"
278
294
  $1 + decode($2)
279
295
  }
280
296
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DomainName
4
- VERSION = '0.6.20260921'
4
+ VERSION = '0.7.20261031'
5
5
  end
data/lib/domain_name.rb CHANGED
@@ -82,7 +82,7 @@ class DomainName
82
82
  raise ArgumentError, "domain name must not start with a dot: #{hostname}"
83
83
  end
84
84
  case hostname
85
- when /\A([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\z/
85
+ when /\A([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.?\z/
86
86
  @ipaddr = IPAddr.new($1)
87
87
  @uri_host = @hostname = @ipaddr.to_s
88
88
  @domain = @tld = nil
@@ -171,12 +171,20 @@ class DomainName
171
171
  end
172
172
 
173
173
  def ==(other)
174
- other = DomainName.new(other) unless DomainName === other
174
+ unless DomainName === other
175
+ other = String.try_convert(other)
176
+ return false unless other
177
+ other = DomainName.new(other)
178
+ end
175
179
  other.hostname == @hostname
176
180
  end
177
181
 
178
182
  def <=>(other)
179
- other = DomainName.new(other) unless DomainName === other
183
+ unless DomainName === other
184
+ other = String.try_convert(other)
185
+ return nil unless other
186
+ other = DomainName.new(other)
187
+ end
180
188
  othername = other.hostname
181
189
  if othername == @hostname
182
190
  0
@@ -96,4 +96,36 @@ class TestDomainName < Test::Unit::TestCase
96
96
  assert_equal cps.pack('U*').unicode_normalize(:nfc), DomainName::Punycode.decode(punycode), title
97
97
  }
98
98
  end
99
+
100
+ test "limit the length of encoded labels in a hostname" do
101
+ longest = 'a' * 55 + "ü"
102
+ encoded = 'xn--' + 'a' * 55 + '-8yf'
103
+ assert_equal 63, encoded.length
104
+ assert_equal "#{encoded}.com", DomainName::Punycode.encode_hostname("#{longest}.com")
105
+ assert_equal "#{longest}.com", DomainName::Punycode.decode_hostname("#{encoded}.com")
106
+
107
+ assert_raises(DomainName::Punycode::ArgumentError) {
108
+ DomainName::Punycode.encode_hostname("a#{longest}.com")
109
+ }
110
+ assert_raises(DomainName::Punycode::ArgumentError) {
111
+ DomainName::Punycode.decode_hostname("xn--a#{encoded[4..-1]}.com")
112
+ }
113
+
114
+ ascii = 'a' * 64
115
+ assert_equal "#{ascii}.com", DomainName::Punycode.encode_hostname("#{ascii}.com")
116
+ assert_equal "#{ascii}.com", DomainName::Punycode.decode_hostname("#{ascii}.com")
117
+ end
118
+
119
+ test "reject long labels before encoding or decoding them" do
120
+ unicode = (0x4E00...0x4E00 + 10_000).to_a.pack('U*')
121
+ assert_raises(DomainName::Punycode::ArgumentError) {
122
+ DomainName::Punycode.encode_hostname("#{unicode}.com")
123
+ }
124
+ assert_raise_kind_of(ArgumentError) { DomainName.new("#{unicode}.com") }
125
+
126
+ punycode = 'xn--' + '9' * 10_000
127
+ assert_raises(DomainName::Punycode::ArgumentError) {
128
+ DomainName::Punycode.decode_hostname("#{punycode}.com")
129
+ }
130
+ end
99
131
  end
@@ -184,6 +184,24 @@ class TestDomainName < Test::Unit::TestCase
184
184
  }
185
185
  end
186
186
 
187
+ test "compare with objects that are not strings" do
188
+ dn = DomainName('foo.com')
189
+ [nil, 1, :'foo.com', Object.new].each { |other|
190
+ assert_equal(false, dn == other)
191
+ assert_equal(true, dn != other)
192
+ assert_equal(nil, dn <=> other)
193
+ assert_equal(nil, dn < other)
194
+ assert_equal(nil, dn >= other)
195
+ }
196
+
197
+ str = Object.new
198
+ def str.to_str
199
+ 'www.foo.com'
200
+ end
201
+ assert_equal(false, dn == str)
202
+ assert_equal(1, dn <=> str)
203
+ end
204
+
187
205
  test "check cookie domain correctly" do
188
206
  {
189
207
  'com' => [
@@ -272,6 +290,13 @@ class TestDomainName < Test::Unit::TestCase
272
290
  assert_equal(false, dn.cookie_domain?('168.10.20'))
273
291
  assert_equal(false, dn.cookie_domain?('20'))
274
292
  assert_equal(nil, dn.superdomain)
293
+
294
+ dn = DomainName("#{a}.")
295
+ assert_equal(a, dn.hostname)
296
+ assert_equal(true, dn.ipaddr?)
297
+ assert_equal(nil, dn.domain)
298
+ assert_equal(true, dn.cookie_domain?(a))
299
+ assert_equal(false, dn.cookie_domain?('10.20'))
275
300
  end
276
301
 
277
302
  test "parse IPv6 addresseses" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.20260921
4
+ version: 0.7.20261031
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA
@@ -81,6 +81,8 @@ files:
81
81
  - ".document"
82
82
  - ".github/mergify.yml"
83
83
  - ".github/renovate.json5"
84
+ - ".github/workflows/actions-lock.yml"
85
+ - ".github/workflows/actions.lock"
84
86
  - ".github/workflows/ci.yml"
85
87
  - ".github/workflows/publish-gem.yml"
86
88
  - ".github/workflows/update-public-suffix-list.yml"
@@ -124,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
126
  - !ruby/object:Gem::Version
125
127
  version: '0'
126
128
  requirements: []
127
- rubygems_version: 4.0.16
129
+ rubygems_version: 4.0.20
128
130
  specification_version: 4
129
131
  summary: Domain Name manipulation library for Ruby
130
132
  test_files: