Certificate DNS problem

My domain is:
herdtrails.com, www.herdtrails.com

I ran this command:
sudo -H /opt/letsencrypt/letsencrypt-auto certonly --standalone -d herdtrails.com -d www.herdtrails.com

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for herdtrails.com
http-01 challenge for www.herdtrails.com
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.herdtrails.com (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.herdtrails.com, herdtrails.com (http-01): urn:ietf:params:acme:error:unknownHost :: The server could not resolve a domain name :: No valid IP addresses found for herdtrails.com

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: herdtrails.com
    Type: unknownHost
    Detail: No valid IP addresses found for herdtrails.com

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.

  • The following errors were reported by the server:

    Domain: www.herdtrails.com
    Type: None
    Detail: DNS problem: NXDOMAIN looking up A for www.herdtrails.com

My web server is (include version):
Amazon Linux AMI
amzn-ami-hvm-2017.09.0.20170930-x86_64-gp2 (ami-1a7f6d7e)
https://aws.amazon.com/amazon-linux-ami/2018.03-release-notes/
The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:
AWS, Route 53

I can login to a root shell on my machine (yes or no, or I don’t know):
Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
n/a