Welcome to WebmasterWorld Guest from 54.145.209.107

Forum Moderators: phranque

Strange DNS issue that I can't get my head around.

   
5:14 pm on Mar 23, 2014 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



My main site is getting a redesign, and I have been doing all the dev work on a local server. I wanted to create a sub-domain (beta.example.com) in order to upload the new work and fully test it out on the live server (password protected).

Went to host, set up the sub. created a web root for the sub and uploaded the files. went to the domain and there it was. Clicked through about 10 links then one link resolved to my home router.

hmmmm clicked back and again it was the router login page. typed the domain and again saw my router... went to another domain, worked perfectly then tried the new sub again. Router login page.

I could access any other site, even other sub-domains on the same domain. The problems only occurred when I visited the new sub. Then it started working fine again. then failed to load some images/css and then loaded the router login page.

It then got even stranger. It started displaying the first virtual host on my dev server...

It was around this point I remembered I did set up the same sub-domain about 5 months ago, and forwarded it to my IP address. I set up port forwarding on the router to point it to my dev server.

This record was removed months ago, and when I re created the sub-domain again today I used my host ip and pointed it to a folder at server root.

Can an old dns record really lie dormant in some far off dns server waiting for the record to be updated before rearing it's ugly head and causing this, or am I overlooking something simple here.

My head hurts!

Mack.
8:23 pm on Mar 23, 2014 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



It then got even stranger. It started displaying the first virtual host on my dev server...

You mean, the one it defaults to if a request arrives at the server and can't find any of the named hosts? (Disclaimer: I only know this because just yesterday-- really-- I was wrestling with Virtual Hosts for my MAMP setup.) I assume the issue isn't in your computer's own hosts file, or you'd get the same behavior consistently.
12:06 am on Mar 24, 2014 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month




You mean, the one it defaults to if a request arrives at the server and can't find any of the named hosts?


Yep, that’s the one. I think the default is the first virtual host in the list that becomes the default.

I'm kinda convinced it's a bad DNS record that has went stale somewhere from the last time I used the same sub-domain. I removed the sub and re-created it with a different name and it works flawlessly.

I was getting no where trying to resolve it. Tracerouts where fine, ping was fine. It was just http requests that where going pear shaped :)

Thanks Lucy!

Mack.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month