| 
									
										
										
										
											2017-01-26 19:18:46 -07:00
										 |  |  | (function (exports) { | 
					
						
							|  |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-28 15:15:27 -07:00
										 |  |  | // A CNAME reocord maps a single alias or nickname to the real or
 | 
					
						
							| 
									
										
										
										
											2017-01-26 19:18:46 -07:00
										 |  |  | // Canonical name which may lie outside the current zone.
 | 
					
						
							|  |  |  | // Canonical simply means the expected or real name.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-17 19:38:47 -07:00
										 |  |  | var unpackLabels = exports.DNS_UNPACK_LABELS || require('../dns.unpack-labels.js').DNS_UNPACK_LABELS; | 
					
						
							| 
									
										
										
										
											2017-02-17 16:13:57 -07:00
										 |  |  | exports.DNS_PARSER_TYPE_CNAME = function (ab, packet, record) { | 
					
						
							| 
									
										
										
										
											2017-02-02 18:39:32 -07:00
										 |  |  |   record.data = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; | 
					
						
							|  |  |  |   return record; | 
					
						
							| 
									
										
										
										
											2017-01-26 19:18:46 -07:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }('undefined' !== typeof window ? window : exports)); |