Permalink
Browse files

Use correct service type for DNSServiceQueryRecord

1 parent 01e16c1 commit 72a9cd4329661d2d03fa6934690ab20270d8912b @yanhkim yanhkim committed Aug 20, 2013
@@ -134,7 +134,7 @@ public void RefreshTxtRecord()
if (AddressProtocol == AddressProtocol.Any || AddressProtocol == AddressProtocol.IPv6) {
ServiceError error = Native.DNSServiceQueryRecord(out sd_ref, ServiceFlags.None, interfaceIndex,
- hosttarget, ServiceType.A6, ServiceClass.IN, query_record_reply_handler, IntPtr.Zero);
+ hosttarget, ServiceType.AAAA, ServiceClass.IN, query_record_reply_handler, IntPtr.Zero);
if(error != ServiceError.NoError) {
throw new ServiceErrorException(error);
@@ -56,7 +56,7 @@ public enum ServiceType : ushort {
KEY = 25, /* Security key. */
PX = 26, /* X.400 mail mapping. */
GPOS = 27, /* Geographical position (withdrawn). */
- AAAA = 28, /* Ip6 Address. */
+ AAAA = 28, /* IPv6 Address. */
LOC = 29, /* Location Information. */
NXT = 30, /* Next domain (security). */
EID = 31, /* Endpoint identifier. */
@@ -66,7 +66,7 @@ public enum ServiceType : ushort {
NAPTR = 35, /* Naming Authority PoinTeR */
KX = 36, /* Key Exchange */
CERT = 37, /* Certification record */
- A6 = 38, /* IPv6 address (deprecates AAAA) */
+ A6 = 38, /* IPv6 Address (deprecated) */
DNAME = 39, /* Non-terminal DNAME (for IPv6) */
SINK = 40, /* Kitchen sink (experimentatl) */
OPT = 41, /* EDNS0 option (meta-RR) */

0 comments on commit 72a9cd4

Please sign in to comment.