Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
app
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Site.js
  • app
  • Issues
  • #138

Closed
Open
Opened Oct 29, 2019 by Aral Balkan@aralOwner
  • Report abuse
  • New issue
Report abuse New issue

Document: initial run @hostname error on Mac with stale DNS cache

This is not a bug but a situation you can run into that should be documented (for the time being, documenting it here):

Scenario

  1. You hit (e.g.) mac.my.domain with the DNS not set up for it.
  2. You set up a CNAME for mac.my.domain.
  3. You start a server @hostname (with your hostname correctly set to the above).
  4. Perhaps you expose your server via ngrok, etc.
  5. You hit the hostname in the browser again.

What could happen

If Safari/the system caches the incorrect DNS lookup, your automatic Let's Encrypt TLS certificate provisioning can fail with the following error:

[acme-v2] handled(?) rejection as errback:
Error: getaddrinfo ENOTFOUND mac.my.domain mac.my.domain:80
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
Error loading/registering certificate for 'mac.my.domain':
{ Error: getaddrinfo ENOTFOUND mac.my.domain mac.my.domain:80
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'mac.my.domain',
  host: 'mac.my.domain',
  port: 80 }

The fix

You must clear your DNS cache:

sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache
Assignee
Assign to
15.4.0
Milestone
15.4.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
1
Labels
Documentation
Assign labels
  • View project labels
Reference: site.js/app#138

Like this? Fund us! Your patronage helps keep us independent and going.