Skip to main content

AutoSSL failing for domains with external DNS but hosted and resolving to cpanel server

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! Can you try running this command on the webserver to see if that pulls the correct nameservers? /usr/local/cpanel/3rdparty/bin/perl -MCpanel::DnsRoots -MData::Dumper -e 'print Dumper(Cpanel::DnsRoots->new()->get_nameservers_for_domain("domain.com"));'
    Just change "domain.com" at the end to your domain, leaving the quotes, and then run that command. It should return the nameservers and IP addresses of those nameservers where it is checking for the DNS information.
    0
  • cpanzy
    thanks, results of command: ]# /usr/local/cpanel/3rdparty/bin/perl -MCpanel::DnsRoots -MData::Dumper -e 'print Dumper(Cpanel::DnsRoots->new()->get_nameservers_for_domain("exampledomain.com"));' $VAR1 = { 'server-sbs.futuretek.net.au' => '110.173.226.29', 'server-rmm.futuretek.net.au' => undef, 'server-vhd-01.futuretek.net.au' => undef, 'websrv.futuretek.net.au' => undef, 'server-vhd-02.futuretek.net.au' => undef, 'server-vhd.futuretek.net.au' => undef, 'server-vhd-03.futuretek.net.au' => undef }; these results are not our IP or or domain name, also these results returned are not the DNS servers of that domain when doing a domain whois via domaindossier for example. But they are the NS records in the zone when doing a dig of the domains DNS zone records. results of whois: Name Server: NS5.DNSUNLIMITED.COM Name Server: NS4.DNSUNLIMITED.COM Name Server: NS3.DNSUNLIMITED.COM Name Server: NS1.DNSUNLIMITED.COM Name Server: NS2.DNSUNLIMITED.COM results of DNS dig:
    exampledomain.com IN NS server-vhd-03.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS websrv.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS server-vhd-02.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS server-sbs.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS server-rmm.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS server-vhd.futuretek.net.au 3600s (01:00:00)
    exampledomain.com IN NS server-vhd-01.futuretek.net.au 3600s (01:00:00)
    One thing I can add that may be causing the issue, when running the domain through Domain Dossier on centralops.net, for the DNS records section, before it shows the zone, it shows: DNS query for exampledomain.com failed: TimedOut then it continues to show the zone. Other domains I test do not show this timeout.
    0
  • cPRex Jurassic Moderator
    I'm glad that helped - once the namserver issues are resolved and that command doesn't have the "undef" output I would expect things to work well. I also like using intoDNS: checks DNS and mail servers health to ensure things are working well and there are no odd DNS issues, as AutoSSL ensures that every DNS entry from the root nameservers down to your local machine is correct before it will issue a certificate.
    0
  • cpanzy
    Thank you for your prompt help.
    0
  • cPRex Jurassic Moderator
    You're very welcome!
    0

Please sign in to leave a comment.