Question:
How to set up domain name correctly?
administrator
2010-11-27 00:47:48 UTC
I have been using my domain name that is pointing to my static IP for years until I switched to a new faster router running DD-WRT firmware.

Now when I try to go to this domain name via browser, it takes me to router settings page as if I typed: http://192.168.1.1

I am forwarding ports correctly because my other domain names, which point to the same server, works perfect.

Interesting enough when I access this domain name from outside of my network, it shows me the website correctly, but when I access if from one of my network computers, it shows me the main screen of router settings.

Please Help!
Three answers:
brisray
2010-11-27 01:05:02 UTC
You either have to type in your web servers IP address or, for a more permanent solution alter your hosts file.



The hosts file can be found in Windows\system32\drivers\etc\ and you need to add an entry...







ie



192.168.1.2 myweb.com

192.168.2.2 www.myweb.com



What happens is that most home routers think any request to a web address hosted inside the LAN is an attempt to log into their web interface.



If you've got such a router you need to get someone outside your LAN to test your website or go to somewhere like netcraft.com which is mainly designed to test what the server is running and its uptime.



If you're running several virtual domains you have to add entries to the hosts file for each one.
WARD
2010-11-27 00:59:07 UTC
What does a ping show as an IP Address?



If it shows the 192.168.1.1 address, then something within your network is doing an invalid name lookup.



If you ping the address from outside of your network, do you get the same IP address?



A friend has both DSL and Comcast (cable), and he likes that because he can test his domains (or just IPs) by going to the DSL side and asking for services on the Comcast side. That is because (I/we believe you cannot test router port forwarding from the LAN side of the router)..



Might you have multiple domain names resolving to the same IP? I forget what that is called, but my domain is one of those, so the router must inspect the packet and detect the text of the domain being asked for. Sorry, I'm speaking in generalities, but umm, "true" generalities ;-)
kelleher
2016-10-03 07:19:26 UTC
Resolution, i'm really not the first-class computerman in javascript and so on... i'm 14 yrs ancient btw. But in my language i consider 1004x4608 is first-class dimension. But I dont consider youi watching for this are u?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...