# Interface CSDNSRecordNameType

All Known Implementing Classes:
  `CSDNSRecordNameType.CSDNSRecordNameAbsolute, CSDNSRecordNameType.CSDNSRecordNameRelative`

public sealed interface CSDNSRecordNameType permits CSDNSRecordNameType.CSDNSRecordNameAbsolute, CSDNSRecordNameType.CSDNSRecordNameRelative
A DNS record name.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static final record`
  `CSDNSRecordNameType.CSDNSRecordNameAbsolute`
  An absolute record name (ends with '.').
  `static final record`
  `CSDNSRecordNameType.CSDNSRecordNameRelative`
  A relative record name (does not end with '.').

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `name()`
  `CSDNSRecordNameType.CSDNSRecordNameRelative`
  `stripDomainSuffix(String domain)`
  Strip a domain suffix from this name.

- ## Method Details

  - ### name

    String name()
    Returns:
      The record name text

  - ### stripDomainSuffix

    CSDNSRecordNameType.CSDNSRecordNameRelative stripDomainSuffix(String domain)
    Strip a domain suffix from this name.
    Parameters:
      `domain` - The domain
    Returns:
      This name as a relative name