DNS record not refreshed
I don't know if the title is a correct description of the problem I have. I registered a domain name in godaddy, created a subdomain name and pointed it to some name servers. After some time, I moved my website so I change the name servers of this subdomain name. But the problem now is it is still pointing to the old name servers. Everytime I visit the website in my computer, I get errors. But I try it in another computer, I works. So I suspect there is something left in my computer that still tells my browser to go for the old name server. I've cleared cache and temporary files of this browser but it still does not change. How can I do with it? Thanks.
|
The name servers for the domain should be the same as for the subdomain. You just point the subdomain to an ip address using an A record in the DNS zone on the nameservers.
The first thing that DNS does is to look up the tld (top level domain), then it looks up the domain within that tld, then it looks up the subdomain (host) using the domains own zone records. So they should all be in the same place. That may or may not be the cause of the problem, but you should fix that first. I expect it has been done correctly in the first place, but then you changed the subdomain ns but not the main domains ns. |
Yes, I think I change that. Now I don't have other NS records for subdomains. The domain and subdomains are all using the same DNS. What surprises me is that I can visit this subdomain in one computer that I have not used for a while, but fail in another computer I use recently (both before and after I change the DNS records). So I wonder if it has something to do with my computer, even though I clear all the browsing cache and temporary files.
|
Did you put the subdomain in your hosts file at any stage ?
|
I don't think so... This is my /etc/hosts
Code:
# /etc/hosts: static lookup table for host names |
Go to your command prompt on both computers and do the following command:
ipconfig /all Check to see if both PC have the same DNS server If they do have, go to the "faulty" PC and on command prompt again, type in: ipconfig /flushdns As far as I can see, you have an issue on an internal PC. Give me the Sub DOmain, and I will do a host lookup on it and tell you what I get, just to make sure the external set up is correct. |
Quote:
Small question: on which Linux distro are you issuing these commands? In my opinion they are Windoze only and not valid in Linux. Kind regards, Eric |
Quote:
|
I think I find a way to clear the cache.
Code:
sudo /etc/init.d/ncsd restart |
All times are GMT -5. The time now is 12:41 PM. |