wintest: set recursive queries for internal dns
authorBjörn Baumbach <bb@sernet.de>
Tue, 5 Jun 2012 08:35:19 +0000 (10:35 +0200)
committerKai Blin <kai@samba.org>
Thu, 21 Jun 2012 19:55:20 +0000 (21:55 +0200)
Need dns recursive queries = yes, since
host expects answers with RA-bit.

Signed-off-by: Kai Blin <kai@samba.org>
wintest/test-s4-howto.py
wintest/wintest.py

index 646fa5b..2f89447 100755 (executable)
@@ -38,7 +38,8 @@ def provision_s4(t, func_level="2008"):
                '--option=rndc command=${RNDC} -c${PREFIX}/etc/rndc.conf',
                '${USE_NTVFS}',
                '--dns-backend=${NAMESERVER_BACKEND}',
-               '${ALLOW_DNS_UPDATES}']
+               '${ALLOW_DNS_UPDATES}',
+               '${DNS_RECURSIVE_QUERIES}']
     if t.getvar('INTERFACE_IPV6'):
         provision.append('--host-ip6=${INTERFACE_IPV6}')
     t.run_cmd(provision)
index 97ff2be..94d54de 100644 (file)
@@ -950,5 +950,8 @@ RebootOnCompletion=No
 
         if self.opts.dns_backend == 'SAMBA_INTERNAL':
             self.setvar('ALLOW_DNS_UPDATES', '--option=allow dns updates = True')
+            # we need recursive queries, since host expects answers with RA-bit
+            self.setvar('DNS_RECURSIVE_QUERIES', '--option=dns recursive queries = Yes')
         else:
             self.setvar('ALLOW_DNS_UPDATES', '')
+            self.setvar('DNS_RECURSIVE_QUERIES', '')