Skip to content

dns.resolveTxt() with multiple strings  #52053

@ornotnull

Description

@ornotnull

Version

21.7.0

Platform

Linux server 4.18.0-477.27.1.el8_8.x86_64 #1 SMP Thu Aug 31 10:29:22 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

dns

What steps will reproduce the bug?

dns records in somedomain

test IN TXT 0 string0
test IN TXT 1 string1

the code

import dns from "node:dns/promises"
let t = await dns.resolveTxt("test.somedomain")
console.dir(t)

How often does it reproduce? Is there a required condition?

always

What is the expected behavior? Why is that the expected behavior?

node versions before 21.7.0 return

[ [ '0', 'string0' ], [ '1', 'string1' ] ]

suppose this is the expected behavior

What do you see instead?

versions 21.7.0 and 21.7.1 return

[ [ '0string0' ], [ '1string1' ] ]

looks wrong

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    dnsIssues and PRs related to the dns subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions