View my website b4 dns propogates


#1

is there a way to view my website from the files i have already uploaded via ftp to my new dreamhost account before the domain propogates around the internet?


#2

You could edit your ‘hosts’ file and create an entry for your domain name to the IP address of the machine it’s hosted on.

on windows XP the file is in C:\WINDOWS\system32\drivers\etc

and you would create a new line that says
{ipaddress} www.yourhost.com

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#3

jeez dont wanna go editing files in my system folder!
just want to know if DH provide a temporary link to my domain eg:
www.dreamhost.com/mydomain

???


#4

Sorry you didn’t like my answer. I’ll refrain from answering your questions in the future.

Perhaps you sould search the knowledge base for

“How do I access my website”

and read some of the results. (hint the answer is in the second link, and the very bottom of the page). But even that may take an hour to work, whereas my solution was instantanious.

or you could search the forums for
Viewing Before DNS
make sure you set “AND” and not entire phrase… and just for fun check psosts within the last 6 months.
the answer is the same as the Knowledge Base answer. and again may take several hours. whereas my solution was instant.

Good luck.

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#5

sorry i didnt mean it like that, just that i dont like editing system files!

thanks for your help, hope you are available to answer any questions i have in the future

no hard feelings :slight_smile:


#6

Create a free subdomain.dreamhosters.com subdomain via your Control Panel and set it to mirror your actual domain.


MacManX.com


#7

I would like to view not the website but rather the phpAdmin. Can I use this same trick? Guess I’ll try and see.


#8

Jason,

I tried what you said however I found that the IP address of the machine my domain is hosted on does not respond to port 80/http requests. Any idea how to get the correct IP I should use?

TIA,
-Wayne


#9

It will respond IF you request your hostname at that IP address… for example.

According to my panel i40.com is hosted on gap. So I find out the IP address of GAP.dreamhost.com: 205.196.210.9

if I try to connect to port 80 of gap I get nothing. But if I set my host www.i40.com to 205.196.210.9 and connect to port 80 of www.i40.com I get my site.

to get the IP address, bring up a dos prompt and type ping HOSTNAME.

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#10

Jason,

Thanks for your reply, however, I don’t see how the scenario you described is possible. Whether you are accessing gap.dreamhost.com or www.i40.com, the DNS server (or hosts file in this case) translates the hostname into an IP address 205.196.210.9. I fail to see how a network-layer firewall can differentiate between the two requests on the basis of the hostname used when the machine itself does not service the DNS request. Can you try what you wrote and see if it works? I tried it and it didn’t work for me.

Thanks,
-Wayne


#11

The HOSTS file over rides the DNS lookup. So by having that entry in your hosts file www.i40.com.

So when you type in www.i40.com your hosts file tells it to resolve to 208.196.210.9.

When your request gets to 208.196.210.9 apache asks what the target hostname is (gap.dreamhost.com if you type that, 208.196.210.9 if you type that, or www.i40.com if you type that) and then loads the appropriate page (or denies the request)

I just tried it, but ive done it a dozen times before.
try accessing ‘myip.i40.com’ It probably hasn’t propogated yet. Assuming you get a server not found edit:
c:\windows\system32\drivers\etc\hosts
and add a line that says:
205.196210.9 myip.i40.com

save it, and try again.

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#12

I should add, the webserver responding differently based on the hostname requested is the whole basis for shared hosting. It’s how a 100 domains can ALL be on 205.196.210.9.

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#13

Hi Jason,

I am aware of how name-based virtual hosting works. However, if I attempt to connect to gap.dreamhost.com on port 80, I get:

[whuang@unex source]$ telnet gap.dreamhost.com 80
Trying 205.196.210.9…
telnet: connect to address 205.196.210.9: Connection refused

If the web server does not respond on this IP for port 80, I don’t think it will work if you simply point your host/domain to the same IP. Perhaps you meant to use “basic-heavy.gap.dreamhost.com”?

-Wayne


#14

Ok, I will admit, in trying to prove my example… things got flaky partly because windows DNS Address cache wasn’t consistent and partly because 1/2 way through my experimentation I think myip.i40.com propogated.

I am going to amend my answer slightly. You can get a different IP address (and I beleive the correct one for your new host) by telnetting (standard port 23) to your dreamhost host (gap.dreamhost.com or what ever), and typing ping, your new host name. You may want to try to enter THAT IP address in your HOSTS file.

I have multiple domains/sub domains all on gap. and they Appear to return different IP addresses. And I have no explanation of that.

-Jason

MP3Mystic Your personal Streaming MP3 Server
Dreamhost Hosting


#15

The reason why multiple domains hosted on the same machine will have different ip addresses is that there are multiple instances of apache running on each machine and they all have their own ip address. So depending on which apache instance your domain get’s assigned to, that’s the ip with which the dns will get generated.