[Dnssec-trigger] [PATCH] dnssec-trigger-script: Don't configure RFC1918 zones if there are no global forwarders

Tomas Hozza thozza at redhat.com
Thu Apr 2 18:19:59 UTC 2015


I'm attaching patch for issue caught by ABRT - Automatic Bug Reporting Tool.

Previously the script tried to install RFC1918 zones even if there
were no global forwarders from NetworkManager. This lead to removing
the zones from Unbound which is good, but not from zones Store. Also
on subsequent calls the script tried to remove the zones from Unbound
again and crashed with traceback.

When a machine had configuration of RFC1918 zones enabled by default,
the script crashed also during boot, if the machine was not connected
to any network.

Please also see https://bugzilla.redhat.com/show_bug.cgi?id=1205864

This change makes the script to add RFC1918 zones only if there
are global forwarders, otherwise it will remove them from Unbound
and zones Store. If zones are not configured in Unbound or are not
present in the zones Store, it will do nothing.

Tomas Hozza
Software Engineer - EMEA ENG Developer Experience

Red Hat Inc.                               http://cz.redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dnssec-trigger-script-Don-t-configure-RFC1918-zones-.patch
Type: text/x-patch
Size: 3865 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/dnssec-trigger/attachments/20150402/173d9ff9/attachment.bin>

More information about the dnssec-trigger mailing list