How to use an other DNS-Server for a Subdomain

In some cases a subdomain is managed by a different nameserver than the UCS-Server. You can configure this scenario by editing the following configfile:

In a Samba4 environment you have to edit the file /etc/bind/local.conf.samba4, in a LDAP environment the files is /etc/bind/local.conf.proxy. Add the following lines:

# add local zones here
zone "subdomain.example.com" {
        type slave;
        file "subdomain.example.com";
        masters {192.0.2.11;};  # use correct IP address here!
};

Note: With UCS it is not possible to configure a subdomain as a forward zone. You have to configure it as slave zone as shown above.

Finally you have to restart univention-bind

systemctl restart bind9
1 Like
Mastodon