File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,12 @@ checkDNS
231
231
232
232
**type **: ``boolean `` **default **: ``false ``
233
233
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
+
234
240
By default, this constraint just validates the syntax of the given URL. If you
235
241
also need to check whether the associated host exists, set the ``checkDNS ``
236
242
option to ``true ``:
@@ -305,6 +311,12 @@ dnsMessage
305
311
306
312
**type **: ``string `` **default **: ``The host could not be resolved. ``
307
313
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
+
308
320
This message is shown when the ``checkDNS `` option is set to ``true `` and the
309
321
DNS check failed.
310
322
You can’t perform that action at this time.
0 commit comments