[spesmilo/electrum] Timeout: The DNS operation timed out after 30.002032041549683 seconds (#4101)

Is there a way to solve the timeout issue? I am trying to join a Xubuntu machine into the domain but can’t because of this time out. This is what I am getting:

Warning: /etc/ldap/ldap.conf already exists.
Warning: /etc/krb5.conf already exists.
Created a backup of all configuration files, that will be modified at ‘/var/univention-backup/20180820093632_domain-join’.
Configuring ipv4 DNS servers for enp0s31f6.
Applying new settings to enp0s31f6.
La conexión ‘Conexión cableada 1’ fue desactivada correctamente (ruta activa D-Bus: /org/freedesktop/NetworkManager/ActiveConnection/4)
Conexión activada con éxito (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)
The DNS operation timed out after 30.0022120476 seconds
Traceback (most recent call last):
File «/usr/sbin/univention-domain-join», line 471, in run
distribution_joiner.join_domain()
File «/usr/lib/python2.7/dist-packages/univention_domain_join/distributions/ubuntu.py», line 95, in join_domain
DnsConfigurator(self.nameservers, self.domain).configure_dns()
File «/usr/lib/python2.7/dist-packages/univention_domain_join/utils/general.py», line 40, in root_wrapper
return_value = func(*args, **kwargs)
File «/usr/lib/python2.7/dist-packages/univention_domain_join/join_steps/dns_configurator.py», line 78, in configure_dns
self.check_if_dns_works()
File «/usr/lib/python2.7/dist-packages/univention_domain_join/join_steps/dns_configurator.py», line 83, in check_if_dns_works
resolver.query(‘_domaincontroller_master._tcp.%s.’ % (self.domain,), ‘SRV’)
File «/usr/lib/python2.7/dist-packages/dns/resolver.py», line 1041, in query
timeout = self._compute_timeout(start)
File «/usr/lib/python2.7/dist-packages/dns/resolver.py», line 858, in _compute_timeout
raise Timeout(timeout=duration)
Timeout: The DNS operation timed out after 30.0022120476 seconds