Skip to main content

Autossl does not work for addon domain root name but works with www

Comments

3 comments

  • cPanelLauren
    The output you've provided indicates that the domain is clearly passing the dcv check: Local HTTP DCV OK: addondomain.tld Local HTTP DCV OK: www.addondomain.tld (via addondomain.tld) Local HTTP DCV OK: mail.addondomain.tld (via addondomain.tld)
    What isn't passing the domain control validation is a subdomain: 1:39:29 AM ERROR Local DNS DCV error (subdomain.domain.tld): The DNS query to "_cpanel-dcv-test-record.domain.tld" for the DCV challenge returned no "TXT" record that matches the value "_cpanel-dcv-test-record=c2vwKS3AnmYF0ofadsPgueOq_mrSlvLfdatxoE2sbARrK_ngwsd8b7VTpIZ9yMSQR6". ERROR Local DNS DCV error (www.subdomain.domain.tld): The DNS query to "_cpanel-dcv-test-record.domain.tld" for the DCV challenge returned no "TXT" record that matches the value "_cpanel-dcv-test-record=c2vwKS3AnmYF0oeuPgueOq_mrSlvhseftxoE2sbARrK_ngwsd8b7VTpIZ9yMSQR6".
    If you haven't implemented an A record for this subdomain where you have DNS hosted for the root domain then this won't be able to pass.
    0
  • cPanelMichael
    Hello :) We introduced a script in cPanel & WHM version 80 to help troubleshoot these types of issues: Implemented case CPANEL-25062: Add "scripts/cpdig" as a diagnostic tool for DNS lookups. Here's a look at the script's contents: [CODE=perl] #!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/cpdig Copyright 2019 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited package scripts::cpdig; use strict; use warnings; =encoding utf-8 =head1 NAME cpdig =head1 USAGE cpdig =head1 DESCRIPTION This script performs a DNS query using cPanel"s custom DNS resolver. Its output should yield the same end results as C. cPanel provides this script solely for diagnostic purposes; no cPanel & WHM feature requires its use. =cut use parent qw( Cpanel::HelpfulScript ); use Cpanel::DnsRoots::Resolver; use constant _OPTIONS => (); use constant _ACCEPT_UNNAMED => 1; __PACKAGE__->new(@ARGV)->run() if !caller; sub run { my ($self) = @_; my ( $name, $type ) = $self->getopt_unnamed(); die $self->help() if grep { !$_ } $name, $type; my $dns = Cpanel::DnsRoots::Resolver->new(); $self->_print("$_\n") for $dns->recursive_query( $name, $type ); return; } 1;
    For example, to check how a "TXT" record resolves: /scripts/cpdig subdomain.domain.tld TXT
    Or, to check how an "A" record resolves: /scripts/cpdig subdomain.domain.tld A
    Thank you.
    0
  • jibu
    Yes, the domain is definitely passing the DCV and hence this question. The addondomain.tld does not get the SSL active even after the DCV, however the same www.addondomain.tld get the SSL with no issues. Anyway, I had already requested the client to set up A record for the subdomain.maindomain.tld (addondomain's subdomain) and once that resolved, the SSL got active for the addondomain.tld. Thank you Script Michael, this would certainly help us all.
    0

Please sign in to leave a comment.