diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 0827744b3f1..55ff422b077 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -94,6 +94,7 @@ Configuration * :ref:`enable_annotations ` * `translation_domain`_ * `strict_email`_ + * `use_dns`_ * `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. +use_dns +....... + +**type**: ``Boolean`` **default**: ``true`` + +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. + annotations ~~~~~~~~~~~