How To Fix DNS lookup failed in wordpress(err_name_not_resolved)

Published on:
Last updated:

Sponsored Links

This post is also available in: Japanese

How To Fix DNS lookup failed in wordpress(err_name_not_resolved)

Problem:
Wordpress page does not appear because of an error in the DNS lookup happened.
It may be a problem of DNS cache because you have transferred the application domain.

Details of the error

The error is displayed as ” DNS lookup failed…” when I try to access the wordpress.
” DNS lookup failed…” have occurred in both the page and dashboard in wordpress.


At first, I thought the site itself has stopped.
However, when I look at the real-time report of GoogleAnalytics, the site has been displayed without problems.

How To Fix?

DNS records were rewritten automatically when I transfer application domain.
Check in the following procedure.

1.Take time untill change the DNS record
2.Check the DNS record
3.Clear the DNS cache on your PC
4.Restart the router of the Internet Service
5.Wait 24 hours

1.Take time untill change the DNS record

Time-consuming to change about 2-3 weeks to changed the DNS record.
So DNS lookup failed because there is DNS cache to refer to the old DNS.

2.Check the DNS record

I examined the DNS record with the specified domain in the following site.
As a result, it had been changed to the new name server already, I speculated the cause that the DNS cache is left.

NsLookup – Query the DNS for resource records

web_001ネームサーバーの設定を調べる

web_001ネームサーバーの設定を調べる


domain:Domain you want to check
query type:NS – Name Server
By default the others, click on the “go” button.

Then, check the DNS records as follows.
Part of “time to live”,this is the time of the DNS cache.

web_002ネームサーバーの設定を調べる

web_002ネームサーバーの設定を調べる

3.Clear the DNS cache on your PC

Then DNS cache seems to remain in my PC(windows), I have to clear the DNS cache.

Start a command prompt, please press the enter key, then copy and paste the contents of the following.

ipconfig /flushdns

4.Restart the router of your Internet Service

I have restarted the router. Just in case DNS information seems to remain.

5.Wait 24 hours

At the stage of “2.check the DNS record”,the value of “time to live” was the “1d(24 hours)”.
So that there is a possibility that stale DNS cache information is presented during the 24 hours.

So, I waited for 24 hours after changed the name server infomation.

About
Kuniyoshi Takemoto is the founder of Amelt.net LLC, and editor of this blog(www.amelt.net).Learn more and connect with me on Google+,LinkedIn(English).


Sponsored Links