/// Creates a resource record from domain name, type, class, ttl and data.
/// </summary>
/// <param name="domainName">An owner name, i.e., the name of the node to which this resource record pertains.</param>
/// <param name="type">Two octets containing one of the RR TYPE codes.</param>
/// <param name="dnsClass">Two octets containing one of the RR CLASS codes.</param>
/// <param name="ttl">
/// A 32 bit signed integer that specifies the time interval that the resource record may be cached before the source of the information should again be consulted.
/// Zero values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached.
/// For example, SOA records are always distributed with a zero TTL to prohibit caching.
/// Zero values can also be used for extremely volatile data.
/// </param>
/// <param name="data">
/// A variable length string of octets that describes the resource.
/// The format of this information varies according to the TYPE and CLASS of the resource record.
/// For example, the if the TYPE is A and the CLASS is IN, the RDATA field is a 4 octet ARPA Internet address.