LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why is my website pointing to my local lan ip address (https://www.linuxquestions.org/questions/linux-newbie-8/why-is-my-website-pointing-to-my-local-lan-ip-address-4175417771/)

jmzcons 07-20-2012 06:07 PM

Quote:

Originally Posted by suicidaleggroll (Post 4733704)
Your website isn't "pointing" anywhere. Your webserver is listening for any incoming connections on port 80, and responding with your web page. The reason you can't access it through the domain is DNS. When anybody types in a domain, DNS tells the computer the actual location of that website (the IP address of the computer hosting it). Your DNS for jmzcons.com isn't configured properly, so when somebody types in that domain, they are not being directed to the location where that website actually sits (your Dell box).

1-point the DNS for your domain to your router's public IP address
2-set your Dell up with a static IP on your local network
3-forward port 80 to your Dell's IP in your router config

1- Not sure how to do this
2 -Change Dchp to static ip using 24.150.121.93 public ip
3- did this
......

lithos 07-21-2012 03:18 AM

1 Attachment(s)
please see the picture and make the appropriate settings

uk.engr 07-21-2012 04:22 AM

This problem is related to IP forwarding, NATING and DNS. Look on your Dell PC set static IP:
IP address : xx.xx.xx.xx
Gateway IP : router's IP to which your DEL PC is connected
DNS Server: put dns server IP here (If your router itself is DNS server as well as working as a gateway then put same router's IP)

Now
First let me know What is infrastructure there:
1 Internet wire connected to Internet Router -------> Your Local router -------> Dell PC
or
2 Internet wire connected to Internet Router -------> Dell PC

Explanation:
If you are in first case then IP forwarding will be required at your local router. Also at local router you have to redirect TCP port 80 requests to your main internet router (your main internet router is your DNS server (I consider it)) i.e. NATING

If you are in second case no IP forwarding is required. No need to redirect your connections. It will work simply after setting IPs statically

Note: In our case main internet router provided by PTCL (internet provider) is itself configured for NATTING and ip forwarding. So I considered same scenario for you.


All times are GMT -5. The time now is 07:34 AM.