Quote:
|
Originally Posted by aschk
In which case you can probably edit the hosts file on your DNS to refer to the internal IP of the machine. I believe when linux (are you using linux??) does DNS lookups it checks the local host file first (/etc/hosts).
Append the following record :
Code:
<IP> <full domain name> <shortname>
xxx.xxx.xxx.xxx internal.yourdomain.com internal
|
Either you are going to use the hosts file
or you will use DNS but not both. I use UNIX and Linux on occasion but they both work almost in the same way.
DNS uses BIND(8) to do its lookups not the host file. I would recommend just using the hosts file because it is so much easier than setting up DNS.
Quote:
I think this should do the trick. So basically you can take over any domain out there (for your internal usage). e.g. google.com 
All of your internal machines should now be able to go to http://internal.yourdomain.com or http://internal , i think. Not tried and tested but I think the theory is right.
|
Yes, you are correct. Depending on how the hosts file is set up, you can just then access that machine with one of the names in that file such as:
127.0.0.1 localhost localhost.testdomain.com testdomain
192.168.1.1 localhost localhost.testdomain.com testdomain
The above will allow "localhost" "localhost.testdomain.com" "testdomain" to be accessed from the browser.
You will also need to set variables in the httpd.conf file to accept the connections on those addresses.