Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 476 Bytes

File metadata and controls

23 lines (18 loc) · 476 Bytes

hosty

Manipulate host/domain names on the command line

Actions

  • convert to/from punycode
  • get the public suffix
  • get the public suffix + 1
  • get the TLD
  • get the bare hostname
  • get the full hostname (aka FQDN)
  • make sure a hostname is valid
  • make sure a hostname resolves
  • make sure the TLD is valid
  • make sure the public suffix is valid

Notes

  • Handle trailing dot
  • Max label size is 63
  • Max FQDN is 253
  • Optional output: exit code, blank, original