Skip to content

Does Maradns have support for RFC 7505 "Null MX" No Service records (i.e. can we use "." for non-existant MX and SRV records)? #132

Discussion options

You must be logged in to vote

Having been digging through the inner workings of it all, I just realised that there might be a way to get the right outcome without modifying the code, using RAW records. This is untested at the moment, but if I understand the format correctly, the expected outcome of a record like:

%		+300	mx	0 . 

is an answer section consisting of a record type of 15 for MX, with rdata consisting of a 16-bit integer of 0 (so 2 octets of 0) followed by a "zero-length" label, which would be represented by a single octet of 0. That should mean that the following raw record should be correct encoding of a null MX record.

%		+300	raw 15 \000\000\000 

Similarly, a non-existant service would have an SRV rec…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brownianmotion
Comment options

Answer selected by brownianmotion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant