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:

  • 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