---
title: "DKIMレコード: 形式、タグ、読み方 | AutoSPF"
description: "DKIMレコードとは、selector._domainkey.yourdomain.com に公開されるDNS TXTレコードで、受信者があなたのDKIM署名を検証するために使う公開鍵を保持します。"
image: "https://autospf.com/images/og-default.png"
canonical: "https://autospf.com/ja/dkim/dkim-record/"
---

# DKIMレコード

DKIMレコードとは、selector.\_domainkey.yourdomain.com に公開されるDNS TXTレコードで、受信者があなたのDKIM署名を検証するために使う公開鍵を保持します。そのタグには v（バージョン）、k（鍵の種類）、p（公開鍵）があり、空の p= は鍵が失効していることを意味します。

このガイドは、[DKIM](/ja/dkim/)に関する完全ガイドの一部です。関連: [DKIMセレクター](/ja/dkim/dkim-selector/)、[DKIM署名](/ja/dkim/dkim-signature/)。

**DKIMレコードとは、ドメインのDNSに公開される特別な形式のTXTレコードで、受信メールサーバーがメッセージのDKIM署名を検証するために使う公開鍵を保持します。これにより、メッセージがあなたのドメインによって認可され、転送中に改ざんされていないことが確認されます。**

## DKIMレコードの見た目

DKIMレコードは、セミコロンで区切られた`tag=value`ペアの1つの文字列です。その大部分は公開鍵であり、これがDKIMレコードがSPFやDMARCのレコードよりもはるかに長い理由です。典型的なレコードは次のようになります。

```
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ...
```

DNS TXTレコードには1文字列あたり255文字の制限があるため、ほとんどのプロバイダーは長い`p=`の値を複数の引用符付きのかたまりに分割し、DNSソフトウェアがそれを自動的に連結します。ルックアップツールでレコードを見ると、1つの連続した文字列に再構成されます。タグの順序は問題にならず、セミコロン周りの空白は無視されます。

## DKIMレコードのタグ

各タグは、鍵の使われ方の一側面を制御します。実際に厳密に必須なのは`p=`だけですが、`v=`と`k=`はほぼ常に存在します。

| タグ | 名前         | 意味                                                                    |
| -- | ---------- | --------------------------------------------------------------------- |
| v  | バージョン      | DKIMのバージョン。DKIM1でなければならず、存在する場合は最初に来なければならない。                         |
| k  | 鍵の種類       | 公開鍵アルゴリズム。rsaが標準。ed25519はより新しく短い代替。                                   |
| p  | 公開鍵        | base64エンコードされた公開鍵そのもの。**空のp=は鍵が失効したことを意味し**、このセレクターを使う署名はすべて失敗する。     |
| t  | フラグ        | 任意のフラグ。t=yはドメインをテスト中としてマークする（検証者は失敗を厳しく扱うべきではない）。t=sはサブドメインでの使用を禁止する。 |
| h  | ハッシュアルゴリズム | 許可される署名ハッシュアルゴリズム（sha256など）。検証者が受け入れるハッシュを制限する。                       |
| s  | サービスの種類    | 鍵が有効なサービス。emailは鍵をメールに限定する。\*（デフォルト）はすべてのサービスを許可する。                   |

## DKIMレコードの保管場所

DKIMレコードはルートドメインには公開されません。代わりに、セレクターと固定の`_domainkey`ラベルから構築されたサブドメインに保管されます。

```
selector._domainkey.yourdomain.com
```

[セレクター](/ja/dkim/dkim-selector/)はメールプロバイダーが選ぶラベルで、レコードが保管される正確なホストを決定します。例えば、Google Workspaceがセレクター`google`であなたのメールを署名する場合、レコードは`google._domainkey.yourdomain.com`にTXTレコードとして公開されます。1つのドメインは同時に多数のセレクターを持てるため（鍵ごと、送信サービスごとに1つ）、1つのドメインが複数のDKIMレコードを並べて保持することはよくあります。

## DKIMレコードを見つけて確認する方法

DKIMの難しいところは、セレクターを既に知っていない限りレコードを検索できないこと、そしてDNSにはドメイン上のすべてのセレクターを一覧表示する方法がないことです。それを見つける確実な方法は、あなたのドメインが実際に送信したメッセージを読むことです。

そのメッセージの生ヘッダーを開き、`DKIM-Signature`ヘッダーを見つけてください。その中の`s=`タグがセレクターで、`d=`タグが署名ドメインです。それらを`s._domainkey.d`として組み合わせると、照会すべき正確なホストが得られます。例えば、`s=selector1; d=yourdomain.com`は、レコードが`selector1._domainkey.yourdomain.com`に存在することを意味します。

ホストがわかったら、`dig`、`nslookup`、またはブラウザベースのチェッカーでTXTレコードとして照会します。無料の[DKIMルックアップツール](/ja/tools/dkim-lookup/)は、これをさらに簡単にします。Google、Microsoft、Amazon SES、Mailchimp、その他の主要プロバイダーが使う数十の一般的なセレクターを自動スキャンするため、ヘッダーを掘り返すことなくレコードを見つけて検証できることがよくあります。また、検証を失敗させる原因となる空または不正な形式の`p=`値も検出します。

## DKIMレコードの追加方法

DKIMの追加は、主にメールプロバイダーを通じて処理される3ステップのプロセスです。

1. **鍵ペアを生成する。** 送信プラットフォーム（Google Workspace、Microsoft 365、お使いのESP、またはメールサーバー）でDKIMを有効化し、公開鍵/秘密鍵のペアを生成させます。プロバイダーは秘密鍵を保持し、DKIMレコードとして書式化された公開鍵をあなたに渡します。プロバイダーごとの正確な手順は[DKIMレコードの生成方法](/ja/dkim/how-to-generate-a-dkim-record/)を参照してください。
2. **TXTレコードを公開する。** DNSホストで、プロバイダーが指定する`selector._domainkey.yourdomain.com`ホストにTXTレコードを作成し、渡された値を貼り付けます。
3. **検証する。** DNSが伝播するのを待ち、ルックアップツールを使ってレコードが解決し、公開鍵が破損していないことを確認します。テストメッセージを送信し、受信側で`DKIM-Signature`が通過することを確認します。

## よくある質問

### DKIMレコードとは何ですか？

DKIMレコードとは、ドメインのDNSにあるTXTレコードで、送信メールのDKIM署名を検証するために使う公開鍵を保管します。受信サーバーはこれを取得して、メッセージがあなたのドメインによって認可され、転送中に改変されていないことを確認します。これにより配信性が強化され、なりすましから保護されます。

### DKIMレコードのp=タグは何を意味しますか？

`p=`タグは、検証者がメッセージの暗号学的署名をチェックするために使う、base64エンコードされた公開鍵を保持します。これはレコードの本質的な部分です。`p=`が存在するが空の場合、それは鍵が失効したことを示し、そのセレクターで署名されたメッセージはすべてDKIM検証に失敗します。

### DKIMレコードはどこに保管されますか？

DKIMレコードは、セレクターと`_domainkey`ラベルによって形成される特別なDNSホストに、`selector._domainkey.yourdomain.com`の形式でTXTレコードとして保管されます。メールプロバイダーが選ぶセレクターが正確なホストを決定し、これが1つのドメインが異なるセレクターに複数のDKIMレコードを保持できる理由です。

### 1つのドメインはいくつのDKIMレコードを持てますか？

1つのドメインは、持っているセレクターの数だけDKIMレコードを持てますし、固定の制限はありません。各送信サービスや鍵のローテーションは通常、それぞれ独自のセレクターを使うため、複数のプラットフォームを通じて送信するドメインは、それぞれに個別のDKIMレコードを公開し、それらはすべて異なる`_domainkey`ホストの下で共存します。

Rated 5/5 on G2 · Trusted since 2018 

##  Trusted by 50,000+ domains 

### "AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"

> It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change. 

 PJ 

Peter J.

 President · Small-Business (50 or fewer emp.) 

### "Helped us go beyond capacity"

> AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example. 

 VU 

Verified User

 Financial Services · Mid-Market (51-1000 emp.) 

### "Great service and great support"

> AutoSPF was easy to initially set up on our own and a great cost effective entry into spf flattening. Needed our first support assistance today and got great response including a video demonstrating the issue I was trying to solve, a quick fix, and more detailed followup. 

 GF 

Greg F.

 Mid-Market (51-1000 emp.) 

[Read our reviews on G2 ](https://www.g2.com/products/autospf/reviews)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138897474","https://www.linkedin.com/company/autospf","https://x.com/autospf01","https://www.facebook.com/autospf","https://github.com/duocircle","https://www.g2.com/products/autospf/reviews"],"aggregateRating":{"@type":"AggregateRating","ratingValue":"5.0","reviewCount":"21","bestRating":"5","worstRating":"1","url":"https://www.g2.com/products/autospf/reviews"},"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://autospf.com/contact-us/"},"knowsAbout":["SPF Record Flattening","Sender Policy Framework","Email Authentication","DNS Management","DMARC","DKIM","Email Deliverability","SPF Lookup Limits"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"AutoSPF","url":"https://autospf.com","description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","publisher":{"@type":"Organization","name":"AutoSPF","url":"https://autospf.com","logo":{"@type":"ImageObject","url":"https://autospf.com/images/autospf-logo.png"},"description":"Automatic SPF flattening and email authentication management. Resolve SPF lookup limits, flatten SPF records, and maintain email deliverability across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"DKIMレコードとは何ですか？","acceptedAnswer":{"@type":"Answer","text":"DKIMレコードとは、ドメインのDNSにあるTXTレコードで、送信メールのDKIM署名を検証するために使う公開鍵を保管します。受信サーバーはこれを取得して、メッセージがあなたのドメインによって認可され、転送中に改変されていないことを確認します。これにより配信性が強化され、なりすましから保護されます。"}},{"@type":"Question","name":"DKIMレコードのp=タグは何を意味しますか？","acceptedAnswer":{"@type":"Answer","text":"`p=`タグは、検証者がメッセージの暗号学的署名をチェックするために使う、base64エンコードされた公開鍵を保持します。これはレコードの本質的な部分です。`p=`が存在するが空の場合、それは鍵が失効したことを示し、そのセレクターで署名されたメッセージはすべてDKIM検証に失敗します。"}},{"@type":"Question","name":"DKIMレコードはどこに保管されますか？","acceptedAnswer":{"@type":"Answer","text":"DKIMレコードは、セレクターと`_domainkey`ラベルによって形成される特別なDNSホストに、`selector._domainkey.yourdomain.com`の形式でTXTレコードとして保管されます。メールプロバイダーが選ぶセレクターが正確なホストを決定し、これが1つのドメインが異なるセレクターに複数のDKIMレコードを保持できる理由です。"}},{"@type":"Question","name":"1つのドメインはいくつのDKIMレコードを持てますか？","acceptedAnswer":{"@type":"Answer","text":"1つのドメインは、持っているセレクターの数だけDKIMレコードを持てますし、固定の制限はありません。各送信サービスや鍵のローテーションは通常、それぞれ独自のセレクターを使うため、複数のプラットフォームを通じて送信するドメインは、それぞれに個別のDKIMレコードを公開し、それらはすべて異なる`_domainkey`ホストの下で共存します。"}}]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://autospf.com/"},{"@type":"ListItem","position":2,"name":"DKIM","item":"https://autospf.com/ja/dkim/"},{"@type":"ListItem","position":3,"name":"DKIM","item":"https://autospf.com/ja/dkim/dkim-record/"}]}
```

```json
{"@context":"https://schema.org","@type":"Product","name":"AutoSPF","url":"https://autospf.com","aggregateRating":{"@type":"AggregateRating","ratingValue":5,"reviewCount":21,"bestRating":5,"worstRating":1},"review":[{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Peter J.","jobTitle":"President"},"datePublished":"2026-03-10","reviewBody":"It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF \"flattens\" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.","name":"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}},{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Verified User","jobTitle":"Financial Services"},"datePublished":"2025-07-31","reviewBody":"AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.","name":"Helped us go beyond capacity","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}},{"@type":"Review","reviewRating":{"@type":"Rating","ratingValue":5,"bestRating":5},"author":{"@type":"Person","name":"Greg F."},"datePublished":"2023-07-26","reviewBody":"AutoSPF was easy to initially set up on our own and a great cost effective entry into spf flattening. Needed our first support assistance today and got great response including a video demonstrating the issue I was trying to solve, a quick fix, and more detailed followup.","name":"Great service and great support","publisher":{"@type":"Organization","name":"G2","url":"https://www.g2.com"}}]}
```
