Domain name doesn't work on localhost

Discussion in 'Apache' started by miskit, Aug 4, 2013.

  1. #1
    I have a home server set up with a couple of things going. Here is the weird thing that I can't figure out. I can access everything just fine from an INTERNET connection external to my LAN using my domain name, let's say "domain.com". So, if I type into my computer on my LAN www.domain.com, it searches without actually finding it's destination giving up after a period of time saying the server cannot be found. But, if I type www.domain.com on my mobile phone using my data connection, it connects without a hitch and everything functions fine. I have done this set up before at a different home, but since I moved, I have come across this problem and either don't remember having this happen before or don't remember what I did to resolve it. Could some one direct me as to what I should look for?
     
    miskit, Aug 4, 2013 IP
  2. MilesWeb

    MilesWeb Well-Known Member

    Messages:
    869
    Likes Received:
    36
    Best Answers:
    7
    Trophy Points:
    173
    #2
    Do you mean the domain does not works in a LAN and does over Internet ? When in LAN try to ping the domain and see if it resolved to the correct IP address.
     
    MilesWeb, Aug 6, 2013 IP
  3. miskit

    miskit Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Sorry for the late response. Yes, you are correct on your assumption and I tried to ping the domain and it does point to my external IP address. That is what is so confusing.
     
    miskit, Aug 8, 2013 IP
  4. miskit

    miskit Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    so, i just read an article that says my router may not support reverse nat. any suggestions as to how I might over come this issue? I am using a linux os.
     
    miskit, Aug 8, 2013 IP
  5. MilesWeb

    MilesWeb Well-Known Member

    Messages:
    869
    Likes Received:
    36
    Best Answers:
    7
    Trophy Points:
    173
    #5
    If it responds to the ping response to external IP check if a connection is created on the server. When you browse that website use the command below on the server if it initiates a connection on the server.

    netstat -nap | grep :80
     
    MilesWeb, Aug 8, 2013 IP
  6. miskit

    miskit Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    okay, I tried the command, but I am not sure what the information that came up means. Could you also please reword your first sentence? I am not following what you are saying there. Thanks for your help. :)

    UPDATE: Okay, so I re-read your response and it made more sense. It seems like it is sending a request to the external ip (the correct one) but nothing is replying back. This is the message I get "SYN_SENT 24280/firefox".
     
    Last edited: Aug 8, 2013
    miskit, Aug 8, 2013 IP