summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-dns-install
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-03-01 11:13:18 +0100
committerPetr Vobornik <pvoborni@redhat.com>2016-04-28 18:46:06 +0200
commit89974548891baa6dbbab401913359e398a2cbc57 (patch)
tree1d99e440a44e15ebdf51914630eb9fdc9f828e72 /install/tools/ipa-dns-install
parent9ee6d379c496cd1648d58a6ecca72ed41638a3f1 (diff)
downloadfreeipa-89974548891baa6dbbab401913359e398a2cbc57.tar.gz
freeipa-89974548891baa6dbbab401913359e398a2cbc57.tar.xz
freeipa-89974548891baa6dbbab401913359e398a2cbc57.zip
Extend installers with --forward-policy option
This option specified forward policy for global forwarders. The value is put inside /etc/named.conf. https://fedorahosted.org/freeipa/ticket/5710 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/tools/ipa-dns-install')
-rwxr-xr-xinstall/tools/ipa-dns-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install
index 2eb1d0258..53afd714d 100755
--- a/install/tools/ipa-dns-install
+++ b/install/tools/ipa-dns-install
@@ -57,6 +57,9 @@ def parse_options():
parser.add_option("--auto-forwarders", dest="auto_forwarders",
action="store_true", default=False,
help="Use DNS forwarders configured in /etc/resolv.conf")
+ parser.add_option("--forward-policy", dest="forward_policy",
+ choices=("first", "only"), default="first",
+ help="DNS forwarding policy for global forwarders")
parser.add_option("--reverse-zone", dest="reverse_zones",
default=[], action="append", metavar="REVERSE_ZONE",
help="The reverse DNS zone to use. This option can be used multiple times")