---
title: NameServer
summary: API reference for NameServer.
status: draft
owner: <owner>
last_reviewed: 2026-07-23
library: SAIF.Framework.DNS
reference_type: package
---

# NameServer

`NameServer` is a `ResourceRecord` subtype representing a single resource record found in the authority (name server) section of a DNS reply.

## Purpose
- Provide a distinct type for authority-section resource records so callers can distinguish them from `Answer` and `AdditionalRecord` entries returned in the same `Response`.

## Context
- Namespace: `SAIF.Framework.DNS`
- Assembly/package: `SAIF.BOF.Framework.DNS`

## Public members
Inherits all public members from `ResourceRecord` (`Domain`, `Type`, `Class`, `Ttl`, `Record`) and adds no members of its own.

| Member | Signature | Purpose |
| --- | --- | --- |
| Domain | `public string Domain { get; }` | The domain name this record applies to (from `ResourceRecord`). |
| Type | `public DnsType Type { get; }` | The resource-record type (from `ResourceRecord`). |
| Class | `public DnsClass Class { get; }` | The resource-record class (from `ResourceRecord`). |
| Ttl | `public int Ttl { get; }` | The time-to-live, in seconds (from `ResourceRecord`). |
| Record | `public RecordBase Record { get; }` | The decoded RDATA payload (from `ResourceRecord`). |

## Behavioral notes
- The class is marked `[Serializable]`.
- `NameServer` has no public constructor; instances are created internally (`internal NameServer(Pointer pointer)`) while parsing a `Response`, and are exposed via `Response.NameServers`.

## Sources
- SAIF.Framework.DNS\ResourceRecord.cs
