简体   繁体   English

DNS更改后,wordpress网站仍指向旧主机

[英]wordpress site still points to old host after dns changed

Hope you are enjoying your Sunday! 希望您在周日愉快! Quick Question I hope, I'm in the process of moving a wordpress site from one host to another (domain name will stay the same). 快速问题我希望,我正在将wordpress网站从一台主机迁移到另一台主机(域名将保持不变)。

So far, I've ftp'ed all of the directories, files, etc. to the new host, email is up and functional, changed the wordpress entries to point to the new database and user id, and was able to access the wordpress site on the new host. 到目前为止,我已经将所有目录,文件等通过ftp传输到新主机,电子邮件已打开并且可以运行,更改了wordpress条目以指向新的数据库和用户ID,并且能够访问wordpress新主机上的站点。 So far, so good... 到现在为止还挺好...

Yesterday, I changed the DNS record to point to the new host servers and the InterNic record reflects this. 昨天,我将DNS记录更改为指向新的主机服务器,而InterNic记录反映了这一点。 However, when I attempt to go to the site, its still pointed to the old host. 但是,当我尝试访问该站点时,它仍然指向旧主机。

So, with that, is this a simple matter of timing or is there an entry somewhere in wordpress that has the ip address and/or dns servers of the old host hard coded that I should be looking for to change? 因此,这是否只是一个简单的时间问题?还是在wordpress中某处有一个条目,该条目中的旧主机的ip地址和/或dns服务器经过硬编码,因此我应该寻求更改?

Thanks for your insight and support! 感谢您的见解和支持! Rita. 丽塔

Probably you just need to wait for your DNS changes to propagate . 可能您只需要等待DNS更改传播即可

You could also modify your network settings to use a different DNS server (8.8.8.8 and 8.8.4.4 are Google's public DNS servers), which in most cases will let you access your new host (ip) via your domain. 您还可以修改网络设置,以使用其他DNS服务器(8.8.8.8和8.8.4.4是Google的公共DNS服务器),在大多数情况下,这将使您可以通过域访问新主机(ip)。

From my experience, you do get strange events happening for up to 2-3 days after a DNS change. 根据我的经验,在DNS更改后的2-3天内,您确实会发生奇怪的事件。

There is nothing to change within the Wordpress core. 在Wordpress核心内没有任何更改。 There is always a possibility that a plugin may store the IP but that should not stop you accessing your site. 插件总是有可能存储IP,但这不会阻止您访问您的站点。

You could try flushing the DNS on your PC. 您可以尝试在PC上刷新DNS。 From the command prompt (assuming windows) type ipconfig /flushdns Depending on your Windows version, this may need elevated privileges. 在命令提示符下(假定为Windows),键入ipconfig / flushdns,具体取决于您的Windows版本,这可能需要提升的特权。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM