dsc-psl-convert(1)

πŸ“¦
version 2.16.1 Β· 2 versions
, in ubuntu stonking

πŸ’– dsc-psl-convert(1) πŸ’–

okay bestie, so this is a General Commands Manual page for dsc-psl-convert, and it's literally the glow-up machine that turns a Public Suffix List (PSL) into a DSC TLD List. we're doing this together, grab a snack πŸ“


✨ NAME ✨

dsc-psl-convert β€” Convert Public Suffix List (PSL) to DSC TLD List


🌸 SYNOPSIS 🌸

dsc-psl-convert [ options ] [ PSL file ]

πŸ¦‹ DESCRIPTION πŸ¦‹

It converts a Public Suffix List (PSL) into a DSC TLD List, and it drops the result on stdout. that's the whole vibe.

If you don't hand it a PSL, it'll use the one already installed on your system β€” for example, on Debian/Ubuntu the package publicsuffix will be installed in /usr/share/publicsuffix. no need to go hunting, bestie, it already has one πŸ’…

If you pass - as the file, it reads from stdin instead. classic.

You can also download the PSL yourself from https://publicsuffix.org/ if you're feeling main character energy.

The PSL gets converted into the TLD list format (peep dsc.conf(5) for that) like this:

  • Exceptions (!name) are ignored πŸ™ˆ
  • Single label suffixes are ignored
  • Wildcards (*.) are removed before processing
  • All labels will be encoded in IDN/punycode

⭐ OPTIONS ⭐

  • --all β€” Include all names found in the PSL file. The default is to stop after ICANN domains (===END ICANN DOMAINS===). so if you want the whole thing, you gotta say so.
  • --no-skip-idna-err β€” Report errors when it's trying to convert international domain names into ASCII (punycode). The default is to just ignore those errors. loud mode, activated.
  • -h|--help β€” Show help and exit. the classic. 🫢

πŸŽ€ OUTPUT FORMAT πŸŽ€

The output format used for DSC's tld_list conf option is literally just one line per suffix. it also supports commenting out an entry with #.

For example:

co.uk
net.au
#net.cn

🌈 EXAMPLE SETUP 🌈

This example fetches the Public Suffix List and converts it in-place into a DSC TLD list, stores it in /etc/dsc, and configures DSC to use that. full send πŸš€

wget -O - https://publicsuffix.org/list/public_suffix_list.dat | \
  dsc-psl-convert - > /etc/dsc/tld.list
echo "tld_list /etc/dsc/tld.list;" >> /etc/dsc/dsc.conf

πŸ‘‘ SEE ALSO πŸ‘‘

dsc(1), dsc.conf(5)


πŸ’œ AUTHORS πŸ’œ

Jerry LundstrΓΆm, DNS-OARC

Maintained by DNS-OARC

https://www.dns-oarc.net/tools/dsc

πŸ’€ BUGS πŸ’€

For issues and feature requests please use:

https://codeberg.org/DNS-OARC/dsc/issues

For question and help please use:

admin@dns-oarc.net

ngl, if something's broken, don't just suffer in silence β€” hit up those links or that email. they want to know. fr fr.

and that's the whole page, bestie β€” this was DNS Statistics Collector, version <purple>2.16.1</purple>, dsc-psl-convert(1), and honestly? iconic. go convert some suffixes. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from
  • ubuntu stonking: oarc-dsc 2.16.1-1 Β· BSD-3-Clause
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms