File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,12 @@ checkDNS
231231
232232**type **: ``boolean `` **default **: ``false ``
233233
234+ .. versionadded :: 4.1
235+ This option was deprecated in Symfony 4.1 and will be removed in Symfony 5.0,
236+ because checking the DNS records is not reliable enough to validate the
237+ existence of the host. Use the :phpfunction: `checkdnsrr ` PHP function if you
238+ still want to use this kind of validation.
239+
234240By default, this constraint just validates the syntax of the given URL. If you
235241also need to check whether the associated host exists, set the ``checkDNS ``
236242option to ``true ``:
@@ -305,6 +311,12 @@ dnsMessage
305311
306312**type **: ``string `` **default **: ``The host could not be resolved. ``
307313
314+ .. versionadded :: 4.1
315+ This option was deprecated in Symfony 4.1 and will be removed in Symfony 5.0,
316+ because checking the DNS records is not reliable enough to validate the
317+ existence of the host. Use the :phpfunction: `checkdnsrr ` PHP function if you
318+ still want to use this kind of validation.
319+
308320This message is shown when the ``checkDNS `` option is set to ``true `` and the
309321DNS check failed.
310322
You can’t perform that action at this time.
0 commit comments