Example Domains and IP Addresses for Documentation

When writing documentation, it is useful to provide examples. To avoid the examples from referencing real live resources, certain domain names and IP addresses have been set aside for use in documentation.

The domains reserved for documentation are:

  • example.com
  • example.net
  • example.org
  • anything.example (replace the "anything" portion with anything you like)

There are also several IP ranges set aside for documentation, including:

  • 192.0.2.0192.0.2.255
  • 198.51.100.0198.51.100.255
  • 203.0.113.0203.0.113.255
  • 2001:db8::2001:db8:ffff:ffff:ffff:ffff:ffff:ffff

When writing documentation, it is recommended that you always use the example domains and IP addresses when creating examples, since users may accidentally try to use the examples provided, which can have undesired effects if you used a real domain name or IP address.

If you use a real domain name or IP address, it should be something that actually would work for the user.

About the Author

WisTex's picture
Scott M. Stolz

Recommended Content