3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Free プランでも Cloudflare の「IPv6 互換性」を無効にする方法

Last updated at Posted at 2022-11-12

グレーアウトして無効にできないので Cloudflare API を実行する

alt

Freeプラン、Proプラン、Businessプランのドメインをご利用のお客様は、Cloudflare API経由でIPv6 互換性を更新しなければなりません。

CloudflareのIPv6サポートを理解した上で設定する

cURL を一回叩くだけ

  • ZONE_ID:ドメインの「概要」ページ右下
  • EMAIL:ログイン時のメールアドレス
  • GLOBAL_API_KEY:右上「マイプロフィール」→「API トークン」
ZONE_ID=【ゾーン ID】
EMAIL=【メール アドレス】
GLOBAL_API_KEY=【Global API Key】

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/settings/ipv6" \
     -H "X-Auth-Email: $EMAIL" \
     -H "X-Auth-Key: $GLOBAL_API_KEY" \
     -H "Content-Type: application/json" \
     --data '{"value":"off"}'

結果

変更前
# nslookup www.cloudremix.net
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   www.cloudremix.net
Address: 104.21.26.194
Name:   www.cloudremix.net
Address: 172.67.138.152
Name:   www.cloudremix.net
Address: 2606:4700:3032::6815:1ac2
Name:   www.cloudremix.net
Address: 2606:4700:3035::ac43:8a98
変更後
# nslookup www.cloudremix.net
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   www.cloudremix.net
Address: 104.21.26.194
Name:   www.cloudremix.net
Address: 172.67.138.152

参考

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?