denmat wrote:
> Hi,
>
> I am trying to let cobbler manage my DNS (and dhcp) but I am having
> issues with getting it to work with dns.
>
>   

.. snip ..

> cat modules.conf
> [serializers]
> settings = serializer_yaml
> distro = serializer_yaml
> profile = serializer_yaml
> system = serializer_yaml
> repo = serializer_yaml
> [authentication]
> module = authn_denyall
> [authorization]
> module = authz_allowall
> [dns]
> module = manage_bind
> [dhcp]
> module = manage_isc
>
> cat named.template
> options {
>           listen-on port 53 { 127.0.0.1; 10.61.236.1; };
>           directory       "/var/named";
>           dump-file       "/var/named/data/cache_dump.db";
>           statistics-file "/var/named/data/named_stats.txt";
>           memstatistics-file "/var/named/data/named_mem_stats.txt";
>           allow-query     { localhost; localnets; };
>           recursion yes;
> };
>
> logging {
>         channel default_debug {
>                 file "data/named.run";
>                 // severity dynamic;
>                 severity debug;
>         };
> };
>
> zone "." IN {
>         type hint;
>         file "named.ca";
> };
>
> $zone_include
>
> cat zone.template
> \$TTL 300
> @                       IN      SOA     $cobbler_server. 
> admin.gdn.example.com (
>                                         $serial   ; Serial
>                                         600         ; Refresh
>                                         1800         ; Retry
>                                         604800       ; Expire
>                                         300          ; TTL
>                                         )
>
>                         IN      NS      $cobbler_server.
>
>
> $host_record
>
> gdn.example.com.  MX 10 mail.example.com.
>
> cat zone_templates/gdn.example.com
> \$TTL 300
> @                       IN      SOA     $cobbler_server. 
> admin.gdn.example.com (
>                                         $serial   ; Serial
>                                         600         ; Refresh
>                                         1800         ; Retry
>                                         604800       ; Expire
>                                         300          ; TTL
>                                         )
>
>                         IN      NS      $cobbler_server.
>
>
> $host_record
>
> gdn.example.com.  MX 10 mail.example.com.
>
> It doesn't seem to pick up anything in the zone_templates directory.
> If I put crap in the zone file it doesn't provide any error
> notification.  If I move /etc/named.conf and run cobbler sync the
> /etc/named.conf file is recreated but it doesn't seem to read the
> $zone_include.
>
> Cobbler doesn't seem to have any logging options available apart from
> the logging of clients attaching to it. 

/var/log/cobbler/cobbler.log exists, but you're never going to get a log 
about a template file not being
set up correctly, as cobbler can't realistically model all of your 
configurations.

> Setting debug to named doesn't
> point to any issues (but you can see it doesn't read any of the
> cobbler managed zone files).
>
> Any idea where I'm going wrong?
>   

John Eckersberg might be able to offer some more info as he implemented 
the BIND management
features, though site-specific configurations are always a bit difficult 
to debug with knowing all of the items
in play.

> Regards,
> denmat
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to