The server could not connect to the client to verify the domain

Hi,

Is this post explaining what I want?
[Raspberry pi with duckdns DDNS failing to verify]

When I try to run:
sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook /home/pi/duckdns/auth.sh --manual-cleanup-hook /home/pi/duckdns/cleanup.sh

Certbot is not found. Where can i find the certbot script?