Coder Social home page Coder Social logo

Comments (3)

timkimber avatar timkimber commented on June 3, 2024

Hi @loganmzz

get_auth_dns() tries each of the DNS clients that are installed until it finds the authoritative DNS server for the domain.

It tries in this order:

  • dig/drill
  • host
  • nslookup

This check is one of the most complicated parts of the code, but it's useful as it ensures that everything is working before we ask LetsEncrypt to do a similar check and produce the certificate.

If you attach the debug output here I can help, or if you can point out which log statements are confusing I can re-write them to be better.

from getssl.

loganmzz avatar loganmzz commented on June 3, 2024

Ok, I haven't seen return statements.

Not sure, it's the best place to debug my case.

Still, here the relevant debug output (sorry for anonymized data :( ):

getssl version: 2.48

Using dig +noedns  CNAME _acme-challenge.app.company.com

Checking if CNAME result contains NS records

Domain is a CNAME, actual domain is xxxxx.acme.company.com

Using dig +noedns  NS xxxxx.acme.company.com to find primary nameserver

Using host -t NS to find primary name server for _acme-challenge.app.company.com
host: couldn't get address for '-t': not found

Using nslookup +noedns -debug -type=soa -type=ns _acme-challenge.app.company.com  to find primary name server
nslookup: couldn't get address for '_acme-challenge.app.company.com': not found
nslookup: couldn't get address for '_acme-challenge.app.company.com': not found
Warning: Couldn't find primary DNS server - please set PUBLIC_DNS_SERVER or AUTH_DNS_SERVER in config
This means getssl cannot check the DNS entry has been updated

Using dig +noedns  CNAME *.app.company.com

Checking if CNAME result contains NS records

Using dig +noedns  NS *.app.company.com to find primary nameserver

Using host -t NS to find primary name server for *.app.company.com
host: couldn't get address for '-t': not found

Using nslookup +noedns -debug -type=soa -type=ns *.app.company.com  to find primary name server
nslookup: couldn't get address for '*.app.company.com': not found
nslookup: couldn't get address for '*.app.company.com': not found
Warning: Couldn't find primary DNS server - please set PUBLIC_DNS_SERVER or AUTH_DNS_SERVER in config
This means getssl cannot check the DNS entry has been updated

I'm little bit surprise to not see: Using "$HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} SOA +trace +nocomments ${gad_d}" to find primary nameserver
(EDIT: Just check my config and it was disabled with _TEST_SKIP_SOA_CALL="1")

from getssl.

github-actions avatar github-actions commented on June 3, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

from getssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.