↑ ↓ select, Enter open, Esc close

List all domains of a Plesk subscription

Adjust the values, the command updates live
root@server
plesk db "SELECT d.name FROM domains d LEFT JOIN domains p ON p.id = d.webspace_id WHERE d.name = 'example.com' OR p.name = 'example.com' ORDER BY d.name"

Reads from the Plesk database all domains whose webspace belongs to the given main domain, including the main domain itself. Useful before suspending, migrating or deleting a subscription to see which websites are affected as well.

Open question before approval: Bedeutung der Spalte domains.webspace_id (0 bei Hauptdomain, sonst ID der Hauptdomain) auf Obsidian 18.0.x bestätigen. Subdomains liegen ebenfalls in domains und werden mit ausgegeben.

Also searched as

  • which domains share the same webspace plesk
  • show additional domains of a subscription
  • plesk subscription domains

Related one-liners

All in Plesk

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.