diff options
Diffstat (limited to 'ipaserver/install/server/install.py')
-rw-r--r-- | ipaserver/install/server/install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py index 4fe1ed9f2..32eef1cd7 100644 --- a/ipaserver/install/server/install.py +++ b/ipaserver/install/server/install.py @@ -1269,6 +1269,12 @@ class Server(BaseServer): raise RuntimeError( "In unattended mode you need to provide at least -r, -p " "and -a options") + if self.setup_dns: + #pylint: disable=no-member + if not self.dns.forwarders and not self.dns.no_forwarders: + raise RuntimeError( + "You must specify at least one --forwarder option or " + "--no-forwarders option") if self.idmax < self.idstart: raise RuntimeError( |