8000 Quoting of empty TXT records · Issue #254 · dnsjava/dnsjava · GitHub
[go: up one dir, main page]

Skip to content
Quoting of empty TXT records #254
Closed
@patrick1024

Description

@patrick1024

Hi,

I'm not sure if this is a bug, but it is at least a different behaviour of creating empty TXT records while using the TXTRecord constructor or the static method fromString of Record:

        Record r0 = Record.fromString(recordName, Type.TXT, DClass.IN, 0, "", zoneName);
        TXTRecord r1 = new TXTRecord(recordName, DClass.IN, 0, "");
        System.out.println("r0: " + r0);
        System.out.println("r1: " + r1);

The output of this code snippet is:

r0: name.name.		0	IN	TXT
r1: name.name.		0	IN	TXT	""

BIND and PowerDNS servers are not able to load records with representation r0.

Patrick

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0