惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
博客园 - 【当耐特】
小众软件
小众软件
博客园 - Franky
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
雷峰网
雷峰网
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Last Week in AI
Last Week in AI
博客园_首页
月光博客
月光博客
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
云风的 BLOG
云风的 BLOG
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Recent Commits to openclaw:main
Recent Commits to openclaw:main
D
Docker
The Last Watchdog
The Last Watchdog
有赞技术团队
有赞技术团队
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
DataBreaches.Net
S
Security @ Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
TaoSecurity Blog
TaoSecurity Blog
S
Security Affairs
Y
Y Combinator Blog
O
OpenAI News
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
K
Kaspersky official blog
Cloudbric
Cloudbric

Using GTmetrix Archives - GTmetrix

How to Test With Cookies - GTmetrix How to Set Up Multi-Factor Authentication in GTmetrix - GTmetrix How to Test With Custom Connection Speeds With GTmetrix - GTmetrix How to Customize Your User Agent in GTmetrix - GTmetrix How to Use History Graphs - GTmetrix
How to Override Your DNS With GTmetrix - GTmetrix
Ian · 2026-04-11 · via Using GTmetrix Archives - GTmetrix

Last Updated:

Get GTmetrix to use a custom DNS when performing tests.



Overview

There are a number reasons why you may need GTmetrix to use a custom DNS:

  • Redirecting development/staging sites to the production site’s real hostname
  • Accessing geoblocked resources
  • Blackholing resources to test for effects on overall performance

With our DNS Override feature, you can specify a hostname and IP address to ensure that your site is analyzed the way you need it to be.


What does DNS Override Do?

In simple terms, a DNS acts like a phone directory between domain names and IP addresses.

For example, typing facebook.com in your address bar would send that domain to a DNS server, which would then route it to something computers understand better, like an IP address (e.g., 31.13.69.228).

A local DNS looks up hostnames and matches them to their corresponding IP address for computers to understand better.


 

Most DNS servers are operated by Internet Service Providers (ISPs) who keep them updated constantly. However, there are occasions where you may want the domain name to be routed differently – this is where a custom DNS would be useful.

Overriding your DNS would essentially tell domain names to go to IP addresses you designate, and not what the general DNS servers would typically define.

Overriding a DNS lets you tell GTmetrix where to go instead of the proper destination.


 

GTmetrix simply provides the ability to override hosts and IP addresses to direct them to your desired server.


How to Use It

To override your DNS, follow the steps below:

1) Enter your URL into the Analyze field, and click on Analysis Options
 

Click on “Analysis Options” to expand the Analysis Options module.


 

2) Expand the Advanced Options field
 

Expand the Advanced Options field to reveal the DNS Override feature.


 

3) Click “Add a Custom DNS” under the DNS Override section
 

Click on “Add a Custom DNS” to reveal the Host and IP Address fields.


 

A Host field and IP Address field will appear.
 
4) Input the host and IP address corresponding to your custom DNS

For example:

Host: facebook.com
IP: 12.34.56.78

When you analyze your page, GTmetrix will use the custom DNS settings you’ve inputted.

Note: Sites using https:// and SSL will still require the newly pointed server to have their SSL certificate properly set up, or GTmetrix will be unable to analyze.

Save it as a Preset!

For convenient access, be sure to save your custom DNS as a Preset.
 

Create a custom DNS preset for quick analysis.


 

Learn more about how to use GTmetrix Analysis Presets.


Frequently Asked Questions (FAQ)

Here are some common questions about overring your DNS in GTmetrix.
 


 

What is DNS Override in GTmetrix?

The DNS Override feature lets you manually map a hostname to a specific IP address, allowing GTmetrix to test a site using a custom server destination.


Why would I use DNS Override?

Common use cases include:

  • Testing staging or development environments
  • Accessing geoblocked content
  • Blocking specific resources (e.g., scripts or domains) to see how they affect performance

How does DNS work in this context?

Normally, DNS resolves a domain (e.g., example.com) to its default IP address. Overriding your DNS means replacing that with a custom IP for testing.


Who can use DNS Override?

This feature is available to all users, even on Basic/Free accounts.


How do I set up DNS Override in GTmetrix?

Go to Analysis Options -> Advanced Options -> Add a Custom DNS, then enter:

  • Host (domain name)
  • IP address

What happens after I set a custom DNS?

GTmetrix will route requests to the IP address you specified, instead of the domain’s default destination.


Can I override multiple domains?

You can add multiple host-to-IP mappings, depending on your testing needs.


Why does the analysis fail when testing my HTTPS site with a custom DNS?

Make sure that the target server has a valid SSL certificate for the hostname. Otherwise, GTmetrix may not be able to complete the test.


Can I save DNS Override settings for reuse?

Yes, you can save them as part of an Analysis Preset for quick access.

Fine-tune your site performance with Hourly Monitoring

PRO Monitoring Splash

Get more frequent analysis done and keep a closer eye on your site performance with Hourly monitoring.

Available with select PRO plans.

Other features include: Priority access for tests, More Locations, More Monitored Slots, More On-Demand Tests, Remote Location Monitoring, and more!


Upgrade to PRO today