Replies: 2 comments
-
You are probably using the same version as I am. 1.6, which returns everything in a string and you have to parse it.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
With |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Spatie
I might be overlooking the obvious here, but as I read in the docs, getRecords() should return an array of Records
however, when testing it returns a string with all TXT records.
code used
$records = Dns::of('example.com','8.8.8.8')->getRecords('TXT');
Expected result
$records = ["yxvy9m4blrswgrsz8ndjh467n2y7mgl2","v=spf1 -all"]
Result
"""
example.com.\t\t17794 IN TXT "v=spf1 -all"\r\n
example.com.\t\t17794 IN TXT "yxvy9m4blrswgrsz8ndjh467n2y7mgl2"\r\n
"""
Beta Was this translation helpful? Give feedback.
All reactions