using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace skyscraper5.DNS.Protocol.ResourceRecords.Records
{
	internal class DomainNamePointerRecord : BaseResourceRecord
	{
		public DomainNamePointerRecord(IResourceRecord record, byte[] message, int dataOffset)
			: base(record)
		{
			DomainName = Domain.FromArray(Data, 0, out _);
		}

		public Domain DomainName { get; }
	}
}
