---
name: "defaultdomain"
section: "5"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["linux", "openbsd"]
url: "https://new.carta.tech/defaultdomain"
---

# defaultdomain(5)

default YP domain name

## NAME

**defaultdomain** – default YP domain name

## DESCRIPTION

The **defaultdomain** file is read by [rc(8)](/rc/8.md) at system startup time. It is used to set the YP domain name of the host machine (see [yp(8)](/yp/8.md)).

This file should contain a single line specifying the system domain name as supplied to [domainname(1)](/domainname/1.md). Empty lines and lines beginning with ‘#’ in the file are ignored.

## FILES

- */etc/defaultdomain*

  default domain name

## SEE ALSO

[domainname(1)](/domainname/1.md), [rc(8)](/rc/8.md), [yp(8)](/yp/8.md)
