Hi,
I have a master DC and a site DC (basically just for site authentication). Both have DHCP. I have created one policy for DHCP DNS and I would like to have 2 dns entries for DNS on the Site which should be the IP of the Site DC and the master DC as the secondary. But every time I save and DHCP is assigned at the site, I get the master DC as the primary and the site DC as the secondary.
Is there a way to force the site DC to be the primary and the master DC as the secondary?
First, create a second “DHCP: DNS” policy for your site. In it assign two DNS servers; the site DC being the first and the master DC the second one.
Then assign that new policy to the DHCP network object for the site.
You can have as many policies as you want and connect them to pretty much any object. Univention LDAP Policies work similar to Windows Group Policies: the policy closest to the LDAP object the policy is evaluated for is the one that’s active. Meaning you can assign the default policies to the LDAP root and more specific ones that override the default policy on the LDAP object itself (the “DHCP network” object for the site in your case).
Sorry for my earlier reply — I didn’t read your post properly.
Looking at your screenshots show that you entered the servers in the same order in both policies. So in order to fix this:
Edit your second policy,
Remove the entry for the .16. subnet & save,
Edit the same policy again,
Add the entry for the .16. subnet as the second one & save.
The additional step is required as simply swapping both entries doesn’t seem to work — probably because the UMC thinks that nothing has actually changed and therefore it doesn’t have to modify the entry.