LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 06-01-2010, 03:02 PM   #1
shva
Member
 
Registered: Feb 2009
Distribution: Fedora, Arch, Debian, Ubuntu
Posts: 56

Rep: Reputation: 15
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.

Last edited by shva; 06-02-2010 at 04:53 PM.
 
Old 06-01-2010, 03:57 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
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.
 
Old 06-01-2010, 04:39 PM   #3
shva
Member
 
Registered: Feb 2009
Distribution: Fedora, Arch, Debian, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
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.
 
Old 06-01-2010, 11:07 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Did you put the subdomain in your hosts file at any stage ?
 
Old 06-01-2010, 11:36 PM   #5
shva
Member
 
Registered: Feb 2009
Distribution: Fedora, Arch, Debian, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
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
 
Old 06-02-2010, 01:41 AM   #6
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 149

Rep: Reputation: 27
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.
 
Old 06-02-2010, 01:46 AM   #7
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Quote:
Originally Posted by linuxgurusa View Post
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
 
Old 06-02-2010, 01:58 AM   #8
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 149

Rep: Reputation: 27
Quote:
Originally Posted by EricTRA View Post
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
 
Old 06-02-2010, 04:53 PM   #9
shva
Member
 
Registered: Feb 2009
Distribution: Fedora, Arch, Debian, Ubuntu
Posts: 56

Original Poster
Rep: Reputation: 15
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.
 
  


Reply

Tags
dns


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MX Record IN DNS mosharaf_linux Linux - Server 1 01-28-2010 05:36 AM
DNS - MX record not getting from dig jose_tk Linux - Networking 3 10-23-2009 05:07 AM
Reverse DNS: Why is the record on the datacenter DNS server instead? Swakoo Linux - Networking 2 09-20-2007 05:42 AM
Updating DNS A record brian_lad Linux - Networking 2 02-23-2006 11:03 PM
Bind DNS record macadam Linux - Networking 4 06-11-2005 09:18 AM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration