s4-python: Move dnspython to lib/, like the other Python modules
[idra/samba.git] / source4 / scripting / bin / samba_dnsupdate
index 4d54ab4f4cb57430b1b973f6b5b5161cdfc4b259..fab112e2bd9ad3f87a5fd823c66a9808b8c78cc6 100755 (executable)
@@ -18,7 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-import getopt
 import os
 import fcntl
 import sys
@@ -33,15 +32,14 @@ sys.path.insert(0, "bin/python")
 
 import samba
 import optparse
-from samba import getopt as options, Ldb
-from ldb import SCOPE_SUBTREE, SCOPE_BASE, LdbError
-import ldb
+from samba import getopt as options
+from ldb import SCOPE_BASE
 from samba import glue
 from samba.auth import system_session
 from samba.samdb import SamDB
 import samba.external
 
-resolver = samba.external.samba_external_dns_resolver()
+resolver = samba.external.dns_resolver()
 
 default_ttl = 900