Problem with installing letsencrypt on subdomain


Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain

I ran this command: sudo certbot certonly --standalone --preferred-challenges http --http-01-port 80 -d -d

It produced this output:Failed authorization procedure. (http-01): urn:ietf :params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.test.freque

  • The following errors were reported by the server:

    Type: None
    Detail: DNS problem: NXDOMAIN looking up A for

My web server is (include version):

The operating system my web server runs on is (include version): Apache/2.4.18 (Ubuntu)

My hosting provider, if applicable,

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):


It’s true. There’s a DNS record for, but does not exist. 300   IN      A

You need to add DNS record(s) at your DNS service before you can use HTTP-01 validation.


But i only have one domain. How can i add another DNS record for ??? and what kind of record should i add


You asked Certbot to get a certificate for two names, and

You should add an A record with the same value as your other one, probably the same way you added it.

Edit: Or, you can get a certificate for only the one, existing name.


Yeah but when add one also i end up with an error

Failed authorization procedure. (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching Timeout during connect (likely firewall problem)


  • The following errors were reported by the server:

    Type: connection
    Detail: Fetching
    Timeout during connect (likely firewall problem)

    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. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.


I can’t access either. Can you?

Maybe there’s a firewall blocking all connections, or connections from foreign countries?


I do have firewall but all traffic is allowed on my IP
"INPUT -p tcp --dport 80 -m state --state NEW -s -j ACCEPT "
or maybe i need another rule hmmm


That only allows traffic coming from The rest of the Internet is blocked.


Upss sorry figured out whats the issue, thank you so much for your help @mnordhoff


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.