Skip to content

Instantly share code, notes, and snippets.

@jasonk
Last active March 15, 2022 21:28
Show Gist options
  • Save jasonk/5ebe676d1c83c9d30c8e6909d6d8cce9 to your computer and use it in GitHub Desktop.
Save jasonk/5ebe676d1c83c9d30c8e6909d6d8cce9 to your computer and use it in GitHub Desktop.

Revisions

  1. jasonk revised this gist Mar 15, 2022. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions reserved-test-domains.md
    Original file line number Diff line number Diff line change
    @@ -51,9 +51,9 @@ Reserved by RFC2606/RFC6761 for use in documentation and examples.

    ## References ##

    https://www.rfc-editor.org/rfc/rfc2606.html
    https://www.rfc-editor.org/rfc/rfc6761.html
    https://www.iana.org/domains/reserved
    https://example.com/
    https://example.net/
    https://example.org/
    * https://www.rfc-editor.org/rfc/rfc2606.html
    * https://www.rfc-editor.org/rfc/rfc6761.html
    * https://www.iana.org/domains/reserved
    * https://example.com/
    * https://example.net/
    * https://example.org/
  2. jasonk created this gist Mar 15, 2022.
    59 changes: 59 additions & 0 deletions reserved-test-domains.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,59 @@
    # Reserved Test Domain Names #

    Making up fake email addresses that use real domain names is a bad idea and in my experience also extremely common. To help people avoid that situation, here is a list of all the domain names that I know of that are reserved explicitly for purposes like testing and documentation.

    ## Reserved Top-Level Domains ##

    ### .test ###

    Reserved by RFC2606/RFC6761.

    > ".test" is recommended for use in testing of current or new DNS related code.
    ### .example ###

    Reserved by RFC2606/RFC6761.

    > ".example" is recommended for use in documentation or as examples.
    ### .invalid ###

    Reserved by RFC2606/RFC6761.

    > ".invalid" is intended for use in online construction of domai names that are sure to be invalid and which it is obvious at a glance are invalid.
    ### .localhost ###

    Reserved by RFC2606/RFC6761.

    > The ".localhost" TLD has traditionally been statically defined in host DNS implementations as having an A record pointing to the loop back IP address and is reserved for such use. Any other use would conflict with widely deployed code which assumes this use.
    ## Second Level Domains ##

    ### example.com / example.net / example.org ###

    Reserved by RFC2606/RFC6761 for use in documentation and examples.

    ## Test IDN top-level Domains ##

    | DOMAIN | DOMAIN (A-LABEL) | LANGUAGE | SCRIPT |
    | --------- | ------------------- | --------- | ------------------------- |
    | إختبار | xn--kgbechtv | Arabic | Arabic |
    | آزمایشی | xn--hgbk6aj7f53bba | Persian | Arabic |
    | 测试 | xn--0zwm56d | Chinese | Han (Simplified variant) |
    | 測試 | xn--g6w251d | Chinese | Han (Traditional variant) |
    | испытание | xn--80akhbyknj4f | Russian | Cyrillic |
    | परीक्षा | xn--11b5bs3a9aj6g | Hindi | Devanagari (Nagari) |
    | δοκιμή | xn--jxalpdlp | Greek, Modern (1453-) | Greek |
    | 테스트 | xn--9t4b11yi5a | Korean | Hangul (Hangŭl, Hangeul) |
    | טעסט | xn--deba0ad | Yiddish | Hebrew |
    | テスト | xn--zckzah | Japanese | Katakana |

    ## References ##

    https://www.rfc-editor.org/rfc/rfc2606.html
    https://www.rfc-editor.org/rfc/rfc6761.html
    https://www.iana.org/domains/reserved
    https://example.com/
    https://example.net/
    https://example.org/