Difference between revisions of "Cool Solution - DNS-Forwarding and subdomains"

From Univention Wiki

Jump to: navigation, search
(Created page with "{{Cool Solutions Disclaimer|Repository=no|UCS=3.2}} Category:Samba 4 This article describes briefly how you can set up Forward Zones and subdomains on the Univention Corpora...")
 
Line 4: Line 4:
 
This article describes briefly how you can set up Forward Zones and subdomains on the Univention Corporate Server (UCS) with Samba 4.<br>
 
This article describes briefly how you can set up Forward Zones and subdomains on the Univention Corporate Server (UCS) with Samba 4.<br>
 
Prerequisites:
 
Prerequisites:
* UCS DC Master  
+
* UCS DC Master
 +
* Samba 4 as DNS-Backend
 +
 
 +
To determine that Samba 4 is the DNS-Backend run:
 +
ucr search dns/backend
 +
The output should be "samba4"
  
 
= Forward Zones =
 
= Forward Zones =
To set up Forward Zones it is necessary to determine that Samba 4 is the used DNS-Backend:
+
To set up Forward Zones add it in the configuration in /etc/bind/local.conf.samba4
ucr search dns/backend
 
samba4
 
Afterwards add the forward zones in the configuration in /etc/bind/local.conf.samba4
 
 
  zone "domain.tld" {
 
  zone "domain.tld" {
 
   type forward;
 
   type forward;
 +
  forwarders { 123.456.789.012; };
 +
};
  
 
= Subdomains =
 
= Subdomains =
   
+
For forwarding to subdomains the normal zones statement can be used: 
 
+
  zone "sub.domain.tld" {
 +
      type slave;
 +
      masters { 123.456.789.012; };
 +
      forwarders {};
 +
};
  
 
= Debugging =
 
= Debugging =
ucr set loglevel
+
For debugging purpose the set a higher debug level with:
 +
ucr set dns/debug/level=LEVEL
 +
Restart bind with:
 +
service bind9 restart
 +
The default log is syslog.

Revision as of 12:25, 22 April 2014

Produktlogo UCS Version 3.2

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

This article describes briefly how you can set up Forward Zones and subdomains on the Univention Corporate Server (UCS) with Samba 4.
Prerequisites:

  • UCS DC Master
  • Samba 4 as DNS-Backend

To determine that Samba 4 is the DNS-Backend run:

ucr search dns/backend

The output should be "samba4"

Forward Zones

To set up Forward Zones add it in the configuration in /etc/bind/local.conf.samba4

zone "domain.tld" {
  type forward;
  forwarders { 123.456.789.012; };
};

Subdomains

For forwarding to subdomains the normal zones statement can be used:

zone "sub.domain.tld" {
      type slave;
      masters { 123.456.789.012; };
      forwarders {};

};

Debugging

For debugging purpose the set a higher debug level with:

ucr set dns/debug/level=LEVEL

Restart bind with:

service bind9 restart

The default log is syslog.

Personal tools