[PATCH 2/2] idl: Add DNS HINFO record support

Kai Blin kai at samba.org
Sat May 25 06:05:22 MDT 2013


Not sure if we need this, bug samba.org specifies it, so this can cause ANY queries
against samba.org to fail.

Signed-off-by: Kai Blin <kai at samba.org>
---
 librpc/idl/dns.idl | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl
index 7d29278..28dddad 100644
--- a/librpc/idl/dns.idl
+++ b/librpc/idl/dns.idl
@@ -151,6 +151,13 @@ interface dns
 	} dns_soa_record;
 
 	typedef [public] struct {
+		[value(strlen(cpu))] uint8 cpu_length;
+		[charset(DOS)] uint8 cpu[cpu_length];
+		[value(strlen(os))] uint8 os_length;
+		[charset(DOS)] uint8 os[os_length];
+	} dns_hinfo_record;
+
+	typedef [public] struct {
 		uint16     preference;
 		dns_string exchange;
 	} dns_mx_record;
@@ -218,6 +225,7 @@ interface dns
 		[case(DNS_QTYPE_CNAME)] dns_string       cname_record;
 		[case(DNS_QTYPE_SOA)]   dns_soa_record   soa_record;
 		[case(DNS_QTYPE_PTR)]   dns_string       ptr_record;
+		[case(DNS_QTYPE_HINFO)] dns_hinfo_record  hinfo_record;
 		[case(DNS_QTYPE_MX)]    dns_mx_record    mx_record;
 		[case(DNS_QTYPE_TXT)]	dns_txt_record   txt_record;
 		[case(DNS_QTYPE_RP)]	dns_rp_record    rp_record;
-- 
1.8.1.2



More information about the samba-technical mailing list