How to Configure Split DNS / Horizon #815
-
Hello, I found out only other two entries about this topic, Split Horizon / DNS, but unfortunately I did not get completely the info that I need in a clear way. As it would be very useful to use this app but there's lack of any detailed, scenario-based, documentation of this app, I would like to ask if any of you has finally configured it properly on his own self-hosted instance. The scenario in which I am is the following:
Now, I have checked other few posts I have found about the Split Horizon app and it seems it is done by doing two main steps:
NOTE: need also to understand better the "externalToInternalTranslation" purpose defined under each group. Personally, I get the idea of the configuration, but still do not get a full picture of the configuration in Technitium DNS server, as there is a complete lack of a full example, so the "main configuration" + "APP record" properly configured and explained. Right now to configure it for me it seems basically a trial and error. Anyone that could provide a full example on how to properly configure the Split Horizon app for this scenario (no need of a CNAME example, but A record example)? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 22 replies
-
Thanks for asking. Unfortunately there is no documentation available for the apps. However, there is plan to support GUI for all apps so it should be more user friendly and easy to understand once GUI is available. The Split Horizon app supports 2 features. First is to use APP record which is useful only when you have the zones locally hosted. With this APP record, you can return custom A or CNAME response based on the request's IP address. The second feature is Address Translation which works globally (for all domain names hosted or not) and is to be configured via the app's config. In there, you need to configure groups for the client networks and in that group you can specify the external to internal translation map. This feature will automatically check for all the responses and replace any external IP match with internal IP as defined in the config. Let me know if you have any more queries regarding the config. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your availability ShreyasZare. :) Ok, let's say that I want to use the APP record approach and not the global config approach. I go to the actual zone, then I open the new APP record section, as shown below. Then I want to specify, for the specific subdomain, let's say g.example.com that for internal LAN based on 192.168.1.0/25 the IP that should be returned to clients will be 192.168.1.40 and for all the others the public IP one, how should I configure the "Record Data" section? |
Beta Was this translation helpful? Give feedback.
-
Sorry to revive an old thread, but can you point it to a ANAME? e.g. |
Beta Was this translation helpful? Give feedback.
You're welcome :)
The record data JSON for that scenario will be as follows:
The
0.0.0.0/0
network address will match to all addresses.Edit: fixed missing comma in example.