---
title: "SPF Too Many DNS Lookups - 修正方法 | AutoSPF"
description: "SPFの10 DNS lookup制限を超えると、メール認証を壊す永続的エラー（permerror）が発生します。なぜ起こるのか、そしてSPF flatteningがどう解決するのかを解説します。"
image: "https://autospf.com/images/og-default.png"
canonical: "https://autospf.com/ja/spf-dns-rukkuappu-oosugi/"
---

よくあるSPFの問題 

# SPF Too Many DNS Lookups

SPFの10 lookup制限は、メール認証失敗の最も一般的な原因です。ここでは、それが何であるか、なぜ起こるのか、どう修正するのかを解説します。

10 lookupを超えるとSPF permerrorが発生します 

## 今すぐSPFのlookup回数をチェック

ドメインを入力すると、あなたのSPFレコードが使用しているDNS lookupの正確な回数と、制限を超えているかどうかがわかります。

Enter your domain name

Check SPF Record

Type a domain to see its published SPF record, a mechanism-by-mechanism breakdown, and a live DNS lookup count.

SPFを理解する 

## SPF lookupとは何か？

SPF lookupとは、メールサーバーが送信者ドメインのDNSレコードに問い合わせ、特定のIPアドレスがそのドメインを代理してメールを送信する認可を持っているかどうかを確認するプロセスです。異なるベンダー向けに[複数のSPF includeを設定](/blog/configuring-multiple-spf-includes-step-by-step-guide-for-domains/)していると、これはあっという間に積み上がります。

RFC 7208は、SPF評価1回あたり**最大10回のDNS lookup**という上限を課しています。`include`、`a`、`mx`、`ptr`、`redirect`の各メカニズムがこの制限にカウントされます。これを超えるとSPFの永続的エラー（permerror）が発生し、SPFレコード全体が無効になります。

課題 

## なぜ10 lookup制限が課題となるのか

1 

### 複数のサードパーティサービス

各ベンダー（Google Workspace、Mailchimp、Salesforce、HubSpot）は、あなたのSPFレコードに少なくとも1つのincludeを追加します。現代の企業は5つ以上のメール送信サービスを利用することも珍しくありません。

2 

### ネストされたSPFレコード

includeメカニズムは、それ自身のincludeを持つ別のドメインを参照することが多く、lookupの連鎖を生み出して制限をあっという間に超えてしまいます。

3 

### 複雑なSPF設定

ptrメカニズムの使用、複雑な修飾子、広範なIPリストは、いずれも必要以上のDNS lookupの増加につながります。

4 

### 誤った設定

壊れたメカニズムや不適切な設定はSPFチェックの失敗を招き、サーバーがメッセージを検証しようとして追加のlookupを実行する原因となります。

## 制限を超えると何が起こるのか？

- x あなたのSPFレコードが**permerror**（永続的エラー）を返し、完全に無効になります
- x 受信サーバーが**正当なメールを拒否**したり、迷惑メールに振り分けたりする可能性があります
- x SPF認証が失敗するため、DMARCアラインメントが壊れます
- x あなたのドメインの送信者レピュテーションが時間とともに低下します

解決策 

## SPF flatteningが問題をどう解決するのか

SPF flattening（SPF圧縮とも呼ばれます）は、すべての`include`ステートメントとドメイン参照を、その基盤となるIPアドレスに置き換えることで、lookup制限を解決します。統合されたレコードはあなたのドメインのDNSに公開され、再帰的なlookupの必要性を排除します。

AutoSPFは、約15分ごとにあなたのSPF includeを継続的に監視することで、このプロセスを自動化します。基盤となるIPアドレスが変更されると、flatten済みのレコードが自動的に更新されます。手動での介入は一切不要です。

### SPF flatteningのメリット

- DNS lookup制限エラーを解消する
- メール配信を妨げないようにする
- DKIMとDMARCの適切な動作をサポートする
- 送信者レピュテーションを向上させる
- フィッシングやなりすまし攻撃から保護する

### SPF lookupカウンター

SPF lookupカウンターツールを使えば、現在のSPFレコードが必要とするDNS lookupの回数を確認しつつ、同時に[SPF構文を検証](/ja/tools/spf-validator/)できます。10回に達している、または近づいているなら、flattenする時期です。

[あなたのSPFレコードをチェックする →](/ja/tools/spf-checker/) 

## SPF Too Many DNS Lookupsを自動で修正

AutoSPFはあなたのSPFレコードをflattenし、リアルタイムで最新の状態に保ちます。セットアップは60秒で完了します。

[無料トライアルを開始→](https://subscriptions.zoho.com/subscribe/31162770c20bc42aba9c86185ed6106a6a2bba0f6b053217ad482bf477cf719e/smb%5F1)[プランと料金を見る](/ja/ryokin/)

Rated 5/5 on G2 · Trusted since 2018 

##  What Our Customers Say 

### "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.) 

[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":"「SPF Too Many DNS Lookups」とは何を意味しますか？","acceptedAnswer":{"@type":"Answer","text":"これは、評価時にSPFレコードが10回を超えるDNSメカニズムのlookup（include、a、mx、redirect、exists）を必要とすることを意味します。RFC 7208 §4.6.4では評価を10回のlookupに制限しており、これを超えるとPermErrorが発生し、送信者が認可されているかどうかにかかわらず、そのドメインからのすべてのメッセージでSPF認証が失敗します。"}},{"@type":"Question","name":"自分のSPFレコードはDNS lookupを何回使用していますか？","acceptedAnswer":{"@type":"Answer","text":"無料のSPF checkerツールを使えば自動的にカウントできます。include、a、mx、redirect、existsの各メカニズムはそれぞれ1回のlookupを消費し、さらにincludeされたレコード内のネストされたlookupも加算されます。ip4およびip6メカニズムは、DNS解決を必要としないリテラルなIPアドレスであるため、lookupを0回消費します。"}},{"@type":"Question","name":"10 lookupの制限をどう修正すればよいですか？","acceptedAnswer":{"@type":"Answer","text":"主な修正方法は2つあります。SPF flattening（includeメカニズムを解決済みのIPアドレスに置き換える方法で、lookupを0回消費します）と、SPFマクロ（クエリごとの解決を委譲し、lookupを自社のレコードではなくベンダー側で発生させる方法）です。AutoSPFはこの両方のアプローチを自動化し、上流ベンダーのIP変更を15分ごとに再スキャンします。"}},{"@type":"Question","name":"10 lookupの制限はネストされたincludeもカウントしますか？","acceptedAnswer":{"@type":"Answer","text":"はい。あなたのレコードがベンダーAをincludeし、ベンダーAのSPFレコードがベンダーBをincludeしている場合、その連鎖は10という予算のうち2回のlookupを消費します（1回ではありません）。Google Workspaceだけで4回のlookup（トップレベル1回＋ネットブロック3回）を使用し、SendGridは約5回を使用します。"}},{"@type":"Question","name":"SPF flatteningとSPFマクロの違いは何ですか？","acceptedAnswer":{"@type":"Answer","text":"SPF flatteningはincludeメカニズムを解決済みのIPアドレスに置き換え、lookup数をほぼゼロにまで削減しますが、ベンダーのIPが変更されるたびに定期的な更新が必要です。SPFマクロはRFC 7208のマクロ構文を使用してクエリ時に動的リゾルバへlookupを委譲し、10 lookupの制限を完全に回避します。マクロはより柔軟ですが、運用にはマネージドサービスが必要です。"}},{"@type":"Question","name":"10 lookupを超えるとメール到達性に影響しますか？","acceptedAnswer":{"@type":"Answer","text":"はい。制限を超えるとPermErrorが発生し、あなたのドメインからのすべてのメールでSPF認証が失敗します。Gmail、Outlook.com、YahooはSPFを厳格に適用するため、認証失敗はメッセージの拒否や迷惑メール振り分けにつながります。SPFがパスできないため、DMARCアラインメントも壊れます。"}}]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://autospf.com/"},{"@type":"ListItem","position":2,"name":"SPF Too Many DNS Lookups","item":"https://autospf.com/ja/spf-dns-rukkuappu-oosugi/"}]}
```

```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"}}]}
```
