diff --git a/lib/resolver_sequence_tasks.js b/lib/resolver_sequence_tasks.js
index <HASH>..<HASH> 100644
--- a/lib/resolver_sequence_tasks.js
+++ b/lib/resolver_sequence_tasks.js
@@ -23,10 +23,11 @@ exports.DNSServiceResolve = function DNSServiceResolve(options) {
               if (fullname)       service.fullname = fullname;
               if (hosttarget)     service.host = hosttarget;
               if (port)           service.port = port;
-              if (txtRecord)      service.rawTxtRecord = txtRecord;
-
-              if (options.unwrapTxtRecord) {
-                service.txtRecord = dns_sd.txtRecordBufferToObject(txtRecord)
+              if (txtRecord) {
+                service.rawTxtRecord = txtRecord;
+                if (options.unwrapTxtRecord) {
+                  service.txtRecord = dns_sd.txtRecordBufferToObject(txtRecord)
+                }
               }
               resolver.stop()
               next();
fix: only unwrap TXT record if present