Hello,
Yes, you can use 2 network devices with DA. One can be a LAN, as long as the other is an external IP device.
However, if you want a website to work internally resolving to a LAN IP.... and have that same website working externally, resolving to a public IP, that might be more difficult, but is possible.
For that case, you'd have to customize your named.conf and have different zones referenced based on the connecting IP type.. so that if a LAN IP queries for the IP, they get a LAN IP.. but if an external IP queries for the IP, they get the public IP.
For dns, this could get messy.. so you might just want to use your "/etc/hosts" file on the LAN machines instead of thrashing through the named.conf and changing things.
If you're on windows, the hosts file is at:
C:\WINDOWS\system32\drivers\etc\hosts
so you can change that to make the domain resolve to whatever you'd like, for each machine, which is by far smipler, but just less centralized, so you'd only want to be doing this for a few boxes... since it's manual.
So that would solve the dns.. then you'd have to worry about apache.
For this, you'll need to change the VirtualHosts to accept both IPs (internal and external). This is the guide to modify the VirtualHosts:
http://help.directadmin.com/item.php?id=2
What might be easiest here is to change:
to be:
.... Or to:
Code:
<VirtualHost |IP|:80 192.168.0.2:80>
or whatever LAN IP you have.
You'd need then to make changed to your /etc/httpd/conf/ips.conf to adjust the NameVirtualHost to either add the extra LAN IP.. or change it to be NameVirtualHost *:80.
Read this for more info on VirtualHosts:
http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost
John