Koozali.org: home of the SME Server

DNS not working as expected on 5.6

Tony P.

DNS not working as expected on 5.6
« on: February 20, 2003, 06:36:55 PM »
I know this worked on 5.1.2 but I can’t seem to get it to work right with 5.6.

Here is my configuration.

Router/Firewall – Ports 25, 80 and 443 are forwarded to SME
|
SME – Host some web and email –
|
|_________________
|      |
|      |
www1      www2

I use a custom proxypass template to pass web traffic to www1 and ww2


     ServerName www1.mydomain.com
     ProxyPass / http://www1.mydomain.com/


     ServerName www2.mydomain.com
     ProxyPass / http://www2.mydomain.com/


I have www1 and www2 internal address added as hosts in the admin tool and the external DNS address set at my external provider.

The website redirection via proxypass works fine but I cannot send email. I get a DNS error. If I configure my server to use a Master DNS Server email works but now my proxypass wont work. If I set ProxyPass for IP’s vs Hostnames the internal IP address is sent to the clients browser not the DNS name.

If configure the Master DNS Server and I run ping from the SME itself I get the external IP address in the response not the internal one.  

I would like SME to be the master and if it can’t find the domain name in its local DNS to use another server. Is this possible? My 5.1.2 server appeared to work in this fashion.

I also fond the Internet Connection Test fails when the Master DNS Server is not set. I do have the gateway address set so unless the SME DNS is not working as I expect it to I don’t understand why it fails.

If I configure a Master DNS Server and create a /etc/host custom template everything works as expected. I hate to have to configure both proxypass and the hosts file.

Does anyone have any ideas on if it’s a configuration issue or if its me doing something wrong?

Thanks,
Tony P.