From 0b187313851ba4603271f77a93b3e7a18bad1ca5 Mon Sep 17 00:00:00 2001 From: Patrick McDougle Date: Sat, 12 Mar 2016 14:57:24 -0800 Subject: [PATCH 1/2] Adding Documentation for prevent_dns_lookup --- reference/configuration/framework.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 0827744b3f1..f81ebf79204 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -94,6 +94,7 @@ Configuration * :ref:`enable_annotations ` * `translation_domain`_ * `strict_email`_ + * `prevent_dns_lookups`_ * `annotations`_ * :ref:`cache ` * `file_cache_dir`_ @@ -1343,6 +1344,16 @@ If this option is enabled, the `egulias/email-validator`_ library will be used by the :doc:`/reference/constraints/Email` constraint validator. Otherwise, the validator uses a simple regular expression to validate email addresses. +prevent_dns_lookups +............ + +**type**: ``Boolean`` **default**: ``false`` + +If this option is enabled, ``checkMX()`` and ``checkHost()`` will not actually +make a DNS lookup. You might use this flag in a scenario where you temporarily +don't have an internet connection, or are running a test suite that you'd rather +not have a connection to the internet. + annotations ~~~~~~~~~~~ From a6832f84213a7203b09351c762c0620e61cbaaf8 Mon Sep 17 00:00:00 2001 From: Patrick McDougle Date: Sun, 13 Mar 2016 17:47:20 -0700 Subject: [PATCH 2/2] Update to stay in sync with feature pr --- reference/configuration/framework.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index f81ebf79204..55ff422b077 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -94,7 +94,7 @@ Configuration * :ref:`enable_annotations ` * `translation_domain`_ * `strict_email`_ - * `prevent_dns_lookups`_ + * `use_dns`_ * `annotations`_ * :ref:`cache ` * `file_cache_dir`_ @@ -1344,12 +1344,12 @@ If this option is enabled, the `egulias/email-validator`_ library will be used by the :doc:`/reference/constraints/Email` constraint validator. Otherwise, the validator uses a simple regular expression to validate email addresses. -prevent_dns_lookups -............ +use_dns +....... -**type**: ``Boolean`` **default**: ``false`` +**type**: ``Boolean`` **default**: ``true`` -If this option is enabled, ``checkMX()`` and ``checkHost()`` will not actually +If this option is disabled, ``checkMX()`` and ``checkHost()`` will not actually make a DNS lookup. You might use this flag in a scenario where you temporarily don't have an internet connection, or are running a test suite that you'd rather not have a connection to the internet.