A Strange Happening! Domain doesn't load but IP loads up..!

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

A Strange Happening! Domain doesn't load but IP loads up..!

Post by legend986 »

I'm having a strage problem. I'm trying to access rapidshare.com. When I type in the complete address, the site doesn't show up, but when I'm trying to enter the website IP, 195.122.131.250, the website appears but the links in it aren't working because they are not relative url's but hardcoded ones... Does anybody know why this is happening and if there's a workaround for such problems?

PS: I've contacted the ISP but they say they haven't blocked the website at all..
User avatar
The Phoenix
Forum Contributor
Posts: 294
Joined: Fri Oct 06, 2006 8:12 pm

Post by The Phoenix »

Sounds like a dns issue. Have you checked the whois record, and the nameserver records?
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

Yeah, the website has two namerservers

Code: Select all

nserver:                     ns1.rapidshare.com 195.122.131.250
nserver:                     ns2.rapidshare.com 80.237.244.50
The first is working for me, but the second isn't...
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

strange, would have been the other way around :)
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

Why? 8O
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

cause domain names are against ip...and there is no way ip doesn't work but domain name does.
matters not. glad it works now.
User avatar
The Phoenix
Forum Contributor
Posts: 294
Joined: Fri Oct 06, 2006 8:12 pm

Post by The Phoenix »

jmut wrote:cause domain names are against ip...and there is no way ip doesn't work but domain name does.
matters not. glad it works now.
You misunderstand ip and dns.

Dns (in simple terms) is a lookup table. You ask the dns server "What is the ip address for example.com", and it responds with the ip address.

You can have ip addresses up and running but not have a dns record for that ip address, which would result in the ip working but domain name not.

You can have a dns record for an ip address, but not have the ip address up and running, which would result in the domain name working, but the ip address not.

DNS and IP are independent of each other, although dns depends on ip to some degree.

Regardless, the secondary nameserver not being active means a number of people will not be able to get the site to come up.
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

Well, as I said, the first IP is just allowing me to enter the site. But none of the links are working because they are not relative urls but static ones that have rapidshare.com... So, finally, the site is still not working...
User avatar
The Phoenix
Forum Contributor
Posts: 294
Joined: Fri Oct 06, 2006 8:12 pm

Post by The Phoenix »

legend986 wrote:Well, as I said, the first IP is just allowing me to enter the site. But none of the links are working because they are not relative urls but static ones that have rapidshare.com... So, finally, the site is still not working...
Right, because the DNS is not working. Contact Rapidshare, inform them that the secondary dns is not responding, and they will likely tell you to change your whois information to point to the correct/functional nameservers.

That will fix your problem.
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

Well, where would I change my whois information? Do I ask my ISP to change it or something?
User avatar
TheMoose
Forum Contributor
Posts: 351
Joined: Tue May 23, 2006 10:42 am

Post by TheMoose »

rapidshare's nameservers are either down, or your ISP's DNS is a bit messed up. What you can try doing is flushing your computer's cache to see if that helps (http://www.tech-faq.com/flush-dns.shtml), or just wait 24 hours for it to clear itself.
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

You can manually associate IP address to a domain. If you are using windows you can change the WINDOWS\system32\drivers\etc\hosts file.
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Post by legend986 »

@TheMoose and miro_igov

Thanks a million. That solved the problem :) I wonder why but I simply forgot about dns flush thing completely...
Post Reply