LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS record not refreshed (https://www.linuxquestions.org/questions/linux-networking-3/dns-record-not-refreshed-811548/)

shva 06-01-2010 02:02 PM

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.

smoker 06-01-2010 02:57 PM

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.

shva 06-01-2010 03:39 PM

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.

smoker 06-01-2010 10:07 PM

Did you put the subdomain in your hosts file at any stage ?

shva 06-01-2010 10:36 PM

I don't think so... This is my /etc/hosts

Code:

# /etc/hosts: static lookup table for host names
#

#<ip-address>        <hostname.domain.org>        <hostname>
127.0.0.1                localhost.localdomain        localhost white

# End of file


linuxgurusa 06-02-2010 12:41 AM

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.

EricTRA 06-02-2010 12:46 AM

Quote:

Originally Posted by linuxgurusa (Post 3989616)
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.

Hi,

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

linuxgurusa 06-02-2010 12:58 AM

Quote:

Originally Posted by EricTRA (Post 3989619)
Hi,

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

Hey Eric, I thought that he was using Windows as his Desktop Pc's

shva 06-02-2010 03:53 PM

I think I find a way to clear the cache.

Code:

sudo /etc/init.d/ncsd restart

sudo ncsd -i hosts

Now this subdomain works in both computers.


All times are GMT -5. The time now is 12:19 AM.