NS record type parser complete.
This commit is contained in:
		
							parent
							
								
									095def0fda
								
							
						
					
					
						commit
						e8edc20080
					
				| @ -1,13 +1,15 @@ | |||||||
| (function (exports) { | (function (exports) { | ||||||
| 'use strict'; | 'use strict'; | ||||||
|  | 
 | ||||||
| // Comes in variable lengths. It is the name of the primary Master for the Domain.
 | // Comes in variable lengths. It is the name of the primary Master for the Domain.
 | ||||||
| // For example 'ns1.example.com'
 | // For example 'ns1.example.com'
 | ||||||
| // It may be a label, pointer or any combination
 | // It may be a label, pointer or any combination
 | ||||||
|  | var unpackLabels = exports.DNS_UNPACK_LABELS || require('./dns.unpack-labels.js').DNS_UNPACK_LABELS; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| exports.DNS_TYPE_NS = function (rdata) { | exports.DNS_TYPE_NS = function (ab , packet, record) { | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|  |     return unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; | ||||||
| 
 | 
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user