def domain
      components = rdns.map {|rdn| rdn[:dc]}.compact
      components.join('.') unless components.empty?
    end
def domain
      components = rdns.map {|rdn| rdn[:dc]}.compact
      components.join('.') unless components.empty?
    end
Join all DC elements with periods.