-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow customizing dns.resolver.Resolver class attributes (#823)
- Loading branch information
1 parent
17cc10e
commit d9b815f
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,8 +154,14 @@ account = Account(primary_smtp_address='[email protected]', credentials=credentia | |
# different 'access_type': | ||
account = Account(primary_smtp_address='[email protected]', credentials=credentials, | ||
autodiscover=True, access_type=IMPERSONATION) | ||
|
||
# Autodiscover needs to make some DNS queries. We use the dnspython package for that. Here's | ||
# an example of customizing the way the dns.resolver.Resolver object is created: | ||
from exchangelib.autodiscover import Autodiscovery | ||
Autodiscovery.DNS_RESOLVER_ATTRS['edns'] = False # Disable EDNS queries | ||
``` | ||
|
||
|
||
### Optimizing connections | ||
```python | ||
from exchangelib import DELEGATE, Account, Configuration, Credentials, NTLM, Build, Version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters