How to get Split Horizon App to work #721
-
I wanted to use technitium for giving different responses depending on where the client is. My problem now is that tailscale clients outside my local network get dns records for my local network instead for tailscale (i COULD use multiple dns server, but it does seem a bit of a waste). I thought technitium could solve this problem with the split horizon app, but the documentation seems to be "missing", though there is some description in the web ui. But i just dont understand how i can get this to work, how the config works, what some properties represent and problems /scenarios can the corresponding apps/part of the apps solve. I did search for the github issues, google, duckduckgo, reddit and whatsoever but still cant get it to work. Currently the Split Horizon App consists of three classes which all use the same config (in different ways?):
AddressTranslation should to be active as soon as the app is installed, as the web ui does not indicate that it requires an app record, contrary to the other two. The description of AddressTranslation says
So according to the description, the AddressTranslation could be used to translate my local dns entries to tailscale ip addresses. Thus i fired up the docker compose file from the github repo and then:
The docker network of the current container is 172.18.0.0/16 with the gateway being 172.18.0.1 {
"enableAddressTranslation": false,
"networkGroupMap": {
"192.168.1.0/24": "local",
"172.18.0.0/16": "docker"
},
"groups": [
{
"name": "docker",
"enabled": true,
"translateReverseLookups": true,
"externalToInternalTranslation": {
"192.168.1.100": "172.18.0.5"
}
},
]
} Now i would expect a query from the docker host ( The logs contain: Seeing that the client ip (the docker gateway) falls in the docker group network, it should translate the requested ip. The logs do not contain any info for debugging the apps itself, so i do not know if the config is wrong or the app has a bug or what else. Any help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for asking. Yes, there is lack of documentation for many features including Split Horizon. There is a blog post planned for it which will explain the various ways Split Horizon can be configured. In your case, since you have a local primary zone which you need to implement Split Horizon, the DNS app you installed will be needed. The app provides Address Translation feature and you can configure a list of addresses to be automatically translated when serving the query response. In your config, the You can also use an APP record in your zone instead of address translation. The APP record with class set to SimpleAddress will allow you to configure the network address and its corresponding IP address to respond. The APP record approach provides granular control. Let me know if you were able to get it to work. |
Beta Was this translation helpful? Give feedback.
Thanks for asking. Yes, there is lack of documentation for many features including Split Horizon. There is a blog post planned for it which will explain the various ways Split Horizon can be configured.
In your case, since you have a local primary zone which you need to implement Split Horizon, the DNS app you installed will be needed. The app provides Address Translation feature and you can configure a list of addresses to be automatically translated when serving the query response. In your config, the
enableAddressTranslation
seems to be set tofalse
which is why the translation is not working. Just enable it and it should work.You can also use an APP record in your zone instead of add…