I've got a network of machines - say 10.1.1.0/24. My ISP has supplied a
real static IP address to one box which they name Server.mynet.com of
196.168.10.2 I call my internal network mynet.com. I run DNS for my
internal network.....
--+-------/ ISP /------- internet
|
| 196.168.10.2
+----+-----+
| |
| |
+----+-----+
| 10.1.1.86
|
-------+--------------10.1.1.0/24
On my internal network 10.1.1.86 is called linux1.mynet.com
This works OK except that the machine in the middle appears to be different
hosts depending on which side you're looking from.
How can I get Apache to respond to connections on both names (server /
linux1) and associate them with the same website (i.e. not a virtual host).
To make matters more complicated, I am using SSL on the webserver, so the
request must match the name on the certificate.
Unfortunately 196.168.10.2 is not always up so I can't simply redirect all
internal traffic to server.mynet.com using http since the address may not
always be available. I can't redirect external traffic to linux1, because
it is on a private subnet (i.e. the ISP won't be able to route it).
That leaves the option of telling the local DNS that server.mynet.com is
really at 10.1.1.86, but what happens when a program tries to check the
name of 196.169.10.2 ? Obviously, my DNS doesn't know - if it goes away and
checks on the internet, it will find server.mynet.com - but it already
knows that server.mynet.com is 10.1.1.86.....
So I suppose my question is, how does Bind cope with hosts which have
multiple addresses?
Colin
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------