Difference between revisions of "Punching DNS Holes"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
This is useful when you´ve created your account and set up the Amahi-server. You are asked to disable your previous DHCP. Now Amahi is running the DHCP and the DNS-services of your network.  
+
This is useful when you've configured your Amahi server with an internal domain that matches an external domain. If you chose to disable your router DHCP, Amahi is running the DHCP and the DNS services in your network.
If you already have an external URL with the same name as yourhda.com then you will probably run in to some problems reaching those external services like mail and www-sites
 
  
The easiest way to fix this is to create an alias for the external URL and "punch a hole in the local DNS-server"
+
If you want to access a URL (or in general any host) '''outside'' with the same domain that you have in the internal network, the local DNS server may not let you, as it will resolve locally (or not).
  
Go to http://hda/setup?sub=2&tab=network
+
The easiest way to fix this is to create an alias for the external URL and effectively "punch a hole in the local DNS-server."
 +
 
 +
To do that, go to http://hda/setup?sub=2&tab=network
  
 
* Add a new alias
 
* Add a new alias
* Fill in alias: the service you want to reach on your external URL, but only the first part. "mail" or "www"
+
* Fill in alias: the service you want to reach on your external URL, but only the first part, e.g. "mail" or "www"
* In the Ip-adress field fill in the external IP-adress for your external URL. (the four sets of numbers with dots inbetween)  
+
* In the IP address field, fill in the external IP address for your external hostname. (the four sets of numbers with dots in between, e.g. 12.23.34.45)  
  
That would do the trick (at least it did for me)
+
That would the local DNS resolve that alias to the external IP address.

Revision as of 22:29, 27 November 2008

This is useful when you've configured your Amahi server with an internal domain that matches an external domain. If you chose to disable your router DHCP, Amahi is running the DHCP and the DNS services in your network.

If you want to access a URL (or in general any host) 'outside with the same domain that you have in the internal network, the local DNS server may not let you, as it will resolve locally (or not).

The easiest way to fix this is to create an alias for the external URL and effectively "punch a hole in the local DNS-server."

To do that, go to http://hda/setup?sub=2&tab=network

  • Add a new alias
  • Fill in alias: the service you want to reach on your external URL, but only the first part, e.g. "mail" or "www"
  • In the IP address field, fill in the external IP address for your external hostname. (the four sets of numbers with dots in between, e.g. 12.23.34.45)

That would the local DNS resolve that alias to the external IP address.