#dns #fqdn

fqdn

FQDN (Fully Qualified Domain Name)

4 releases

0.2.3 Sep 2, 2022
0.2.2 Jul 4, 2022
0.2.0 Jun 11, 2022
0.1.10 Jun 9, 2022
0.1.6 Sep 24, 2021

#254 in Data structures

Download history 545/week @ 2022-11-27 451/week @ 2022-12-04 447/week @ 2022-12-11 291/week @ 2022-12-18 69/week @ 2022-12-25 113/week @ 2023-01-01 164/week @ 2023-01-08 310/week @ 2023-01-15 337/week @ 2023-01-22 261/week @ 2023-01-29 367/week @ 2023-02-05 561/week @ 2023-02-12 559/week @ 2023-02-19 717/week @ 2023-02-26 286/week @ 2023-03-05 418/week @ 2023-03-12

2,001 downloads per month
Used in 2 crates

MIT license

32KB
447 lines

fqdn

Crates.io Crates.io License Docs

Fully Qualified Domain Name

This crate allows basic manipulation of FQDN with an inner representation compatible with the RFC 1035.

So, all comparisons between character strings (e.g., labels, domain names, etc.) are done in a case-insensitive manner. Of course, FQDN hashing follows this behaviour.

Notice that this RFC introduces some size limits which are not defaulty set by this crate. The feature strict-rfc-1035 activates all of them but each of them could be activated independently of the others:

  • labels are limited to 63 chars (domain-label-length-limited-to-63)
  • names are limited to 255 chars (domain-name-length-limited-to-255)
  • labels should start with a letter (domain-label-should-start-with-letter)
  • labels should only contain letters, digits and hyphens (domain-name-without-special-chars)
  • FQDN should end by a period (domain-name-should-have-trailing-dot): notice that activating this feature modifies the behaviour of Display which adds a period at the end of the FQDN.

No runtime deps

Features

  • domain-label-length-limited-to-63
  • domain-label-should-start-with-letter
  • domain-name-length-limited-to-255
  • domain-name-should-have-trailing-dot
  • domain-name-without-special-chars
  • strict-rfc-1035