domainify

command module
v0.20240905.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 5 Imported by: 0

README

Overview

domainify is a command line utility for converting hostnames to "entity domains", the organizational domain name associated with a hostname.

Entity domains are defined using the Profound Public Suffix List (PPSL), a fork of the well-known Mozilla Public Suffix List used by browsers for restricting the scope of cookies across hostnames. (The PPSL is bundled with the binary, so no external datasets are required.)

Usage

domainify takes hostnames as command line arguments or from stdin (with the --stdin option, and outputs entity domains to standard output, one domain per line. A bad hostname or an error mapping a hostname to an entity domain will result in a blank line being output for that input (and sometimes an error message to standard error).

For example:

$ domainify www.example.com
example.com

$ domainify www.profound.net bogus en.wikipedia.org
profound.net

wikipedia.org

$ echo -e "hosted.l.google.com\ncom\npool85-61.dynamic.orange.es" |
  domainify --stdin
google.com

orange.es

Copyright (c) 2024 by Profound Networks.

domainify is licensed under the MIT License. See the file LICENCE.md for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL