The Hostname values a standard reserves, plus the ones convention settled on.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- corp → const Hostname
- A company network. Shelved alongside home, and for the same reason.
- example → const Hostname
- Reserved for documentation and examples.
- exampleCom → const Hostname
-
example.com, reserved for documentation. - exampleNet → const Hostname
-
example.net, reserved for documentation. - exampleOrg → const Hostname
-
example.org, reserved for documentation. - home → const Hostname
-
A home network. ICANN shelved
.homeas a new gTLD over exactly this collision risk. - internal → const Hostname
- Private-use TLD, reserved by ICANN in 2024 rather than by an RFC.
- invalid → const Hostname
- Reserved to be obviously wrong, for a name that has to fail.
- lan → const Hostname
- What home routers hand out as the search domain.
- local → const Hostname
- Multicast DNS, so a name resolved by shouting on the local link. RFC 6762.
- localdomain → const Hostname
- The bare suffix behind localhostLocaldomain.
- localhost → const Hostname
- The loopback name, which resolves without asking a nameserver.
- localhostLocaldomain → const Hostname
-
The
/etc/hostsloopback line most Linux distributions ship. - test → const Hostname
- Reserved for testing, so it will never be delegated.