namespace DnsClient.Protocol { /* https://tools.ietf.org/html/rfc1035#section-3.3.11: 3.3.2. HINFO RDATA format +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / CPU / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / OS / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: CPU A which specifies the CPU type. OS A which specifies the operating system type. */ /// /// A used to acquire general information about a host. /// /// RFC 1035 /// RFC 1010 public class HInfoRecord : DnsResourceRecord { /// /// Gets a string which specifies the CPU type. /// /// /// The cpu. /// public string Cpu { get; } /// /// Gets a string which specifies the operating system type. /// /// /// The os. /// public string OS { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The cpu. /// The os. /// If is null. public HInfoRecord(ResourceRecordInfo info, string cpu, string os) : base(info) { Cpu = cpu; OS = os; } private protected override string RecordToString() { return $"\"{Cpu}\" \"{OS}\""; } } }