ok this is really weird. I have two hosts in my DNS that point to same IP, they are seperate A records.
I then have two virtual host entries for each of those sub domains in apache on my other server.
One of them responds to http, the other does not, yet it's the same IP! Most likely at apache end, but how is it that it does not even respond?
ex:
C:\Documents and Settings\ryan.BORG>nslookup img.redsquirrel.me.loc
Server: extsrv.loc
Address: 10.10.0.10
Name: img.redsquirrel.me.loc
Address: 10.1.1.10
C:\Documents and Settings\ryan.BORG>nslookup gal.redsquirrel.me.loc
Server: extsrv.loc
Address: 10.10.0.10
Name: gal.redsquirrel.me.loc
Address: 10.1.1.10
C:\Documents and Settings\ryan.BORG>telnet img.redsquirrel.me.loc 80
(screen goes black and I can send/recv data)
C:\Documents and Settings\ryan.BORG>telnet gal.redsquirrel.me.loc 80
Connecting To gal.redsquirrel.me.loc...Could not open connection to the host, on
port 80: Connect failed
C:\Documents and Settings\ryan.BORG>
How is this possible? How does a tcp application know the difference between two host names? Doesn't it work by IP only?
I then have two virtual host entries for each of those sub domains in apache on my other server.
One of them responds to http, the other does not, yet it's the same IP! Most likely at apache end, but how is it that it does not even respond?
ex:
C:\Documents and Settings\ryan.BORG>nslookup img.redsquirrel.me.loc
Server: extsrv.loc
Address: 10.10.0.10
Name: img.redsquirrel.me.loc
Address: 10.1.1.10
C:\Documents and Settings\ryan.BORG>nslookup gal.redsquirrel.me.loc
Server: extsrv.loc
Address: 10.10.0.10
Name: gal.redsquirrel.me.loc
Address: 10.1.1.10
C:\Documents and Settings\ryan.BORG>telnet img.redsquirrel.me.loc 80
(screen goes black and I can send/recv data)
C:\Documents and Settings\ryan.BORG>telnet gal.redsquirrel.me.loc 80
Connecting To gal.redsquirrel.me.loc...Could not open connection to the host, on
port 80: Connect failed
C:\Documents and Settings\ryan.BORG>
How is this possible? How does a tcp application know the difference between two host names? Doesn't it work by IP only?