DNS views (split-horizon) for a Medulla relay in the DMZ
Applies to: Medulla
Version: All
Environment: On-Premise / DMZ relay
Category: Network / DNS
Context
When a Medulla infrastructure needs to manage workstations located both on the internal network and outside the company, it is recommended to deploy a Medulla relay in the DMZ.
This relay allows mobile or remote workstations to communicate with the platform without directly exposing the main Medulla server to the Internet.
Medulla agents use a single configuration containing a single domain name. It is therefore necessary for this same domain name to route traffic to the correct server based on the workstation’s location:
- Internal workstations → internal Medulla server
- External workstations → Medulla relay in the DMZ
There are two methods to achieve this functionality:
- DNS Views (Split-Horizon) (recommended solution);
- DNS Round-Robin (alternative solution).
Recommended solution: DNS views (Split-Horizon)
Principle
DNS views allow a different IP address to be returned for the same DNS name depending on the origin of the request.
- From the internal network → the Medulla server’s private IP address.
- From the Internet → public IP of the DMZ relay.
Advantages
- Only one DNS name to configure.
- No specific configuration required on the agents.
- The main Medulla server remains inaccessible from the Internet.
- Workstations automatically use the appropriate access point.
- Simple, robust, and secure architecture.
Example with Bind9
Bind9 allows you to set up DNS views using the view mechanism.
view "internal" {
match-clients { 10.0.0.0/8; 192.168.0.0/16; };
zone "medulla.example.com" {
type master;
file "/etc/bind/db.medulla.internal";
};
};
view "external" {
match-clients { any; };
zone "medulla.example.com" {
type master;
file "/etc/bind/db.medulla.external";
};
};
The db.medulla.internal file contains the private IP address of the Medulla server, while db.medulla.external points to the DMZ relay.
Official ISC Bind documentation: https://kb.isc.org/docs/aa-00851
Alternative solution: Round-Robin DNS
If your DNS infrastructure does not support DNS views, you can use multiple DNS records with the same name.
Example:
medulla.example.com A 192.168.1.10 medulla.example.com A 203.0.113.25
The DNS server will alternate between the two IP addresses.
Caution
Round-Robin does not distinguish between internal workstations and external workstations. Therefore, it does not guarantee that a workstation will always receive the most appropriate IP address.
This solution is acceptable in certain environments (NAT Hairpin, Load Balancer, Reverse Proxy, etc.) but remains less reliable than DNS views.
Configuration at OVHcloud
OVHcloud’s public DNS does not support DNS views.
There are two options:
- set up an internal DNS (Bind, Active Directory DNS, etc.) for internal workstations;
- or use multiple A records to achieve Round-Robin behavior.
Records can be created from:
- Web Cloud → Domains → DNS Zone.
Configuration with Gandi
Like OVHcloud, Gandi does not offer a Split-Horizon mechanism on its public DNS zone.
You can:
- use an internal DNS server for internal workstations;
- or create multiple A records to implement a Round-Robin configuration.
Changes are made via:
- Domain management → DNS Records.
Key takeaway
| Solution | Recommendation | Complexity | Reliability |
|---|---|---|---|
| DNS views (Split-Horizon) | ⭐⭐⭐⭐⭐ | Average | Excellent |
| Round-Robin | ⭐⭐⭐☆☆ | Very easy | Average |
Medulla recommendation
Whenever possible, we recommend implementing DNS views (Split-Horizon). This architecture ensures that each workstation automatically uses the appropriate access point while avoiding exposing the main Medulla server to the Internet.