TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.27k stars 418 forks source link

URI Record #647

Closed firestrife23 closed 1 year ago

firestrife23 commented 1 year ago

Since URI records are needed for FreeIPA, I don't see an option to add them to the zone.

https://www.rfc-editor.org/rfc/rfc7553.html

ShreyasZare commented 1 year ago

Thanks for the request. Will get URI record type support added soon.

Meanwhile, you can use the Unknown option in the Add Record which allows you to be able to add generic records that are not supported directly by the DNS server. To do that, you will have to enter the RR type code manually and also generate a hex string corresponding to the URI record's RDATA wire format that is described in the RFC. To make it easy, use any hex editor software to generate the RDATA and then enter the hex codes from it when adding the generic record.

firestrife23 commented 1 year ago

Thank you, I'm still trying to figure out last part (hex editor)

Name: _kerberos
Type: Unknown
RR Type: 256
Priority: 0 
Weight: 100 
Target: krb5srv:m:udp:ipa.example.com

What should I put down in the hex editor... like this?

0 100 krb5srv:m:tcp:ipa.example.com

ShreyasZare commented 1 year ago

You have to encode the priority and weight as 16 bit signed integer in hex (big-endian). Take a look at the hex editor screenshot below:

image

So, your final hex string that you need to enter as the value will be: 000000646b7262357372763a6d3a7564703a6970612e6578616d706c652e636f6d

firestrife23 commented 1 year ago

Thank you, and that's really helpful!

ShreyasZare commented 1 year ago

Good to know you got the generic record added.

Keeping this issue open so that I can post update here when the URI record support is available.

ShreyasZare commented 1 year ago

Version 11.3 is now available which adds support for URI record type. Do update and let me know your feedback.

firestrife23 commented 1 year ago

No problems, everything is operating as it should! Thank you very much!

ShreyasZare commented 1 year ago

Thanks for the feedback!