Skip to content

Could not resolve host: github.com, but I can access it without problem #1414

Closed

Description

@amelio-vazquez-reina

I have no problem accessing websites through the browser, including github. However, all of a sudden brew returns host resolution errors.

Anything I can do to investigate what's causing it?

$ brew update
fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/caskroom/homebrew-cask/': Could not resolve host: github.com
Error: Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Fetching /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask failed!

Activity

  1. wadkar commented on Oct 31, 2016

    @wadkar

    probably a system/networking error. i don't think brew can do much about it. Can you ping github.com?
    Possible that DNS isn't working and browser is just using its cache.

  2. underyx commented on Nov 2, 2016

    @underyx

    @wadkar I have the same issue, since today (was working yesterday). I can ping github.com, and curl connects to github.com properly, from the same shell environment where I'm running brew.

    Updating fails with the same logs as in the OP. Installation also fails when it tries to connect to github.com:

    $ brew cask install atom
    ==> Satisfying dependencies
    complete
    ==> Downloading https://github.com/atom/atom/releases/download/v1.11.2/atom-mac.zip
    
    curl: (6) Could not resolve host: github.com
    Error: Download failed on Cask 'atom' with message: Download failed: https://github.com/atom/atom/releases/download/v1.11.2/atom-mac.zip
    The incomplete download is cached at /Users/underyx/Library/Caches/Homebrew/Cask/atom--1.11.2.zip.incomplete
    
  3. MikeMcQuaid commented on Nov 2, 2016

    @MikeMcQuaid
    Member

    probably a system/networking error. i don't think brew can do much about it.

    This, unfortunately. Homebrew can't do anything.

  4. MikeMcQuaid commented on Nov 2, 2016

    @MikeMcQuaid
    Member

    probably a system/networking error. i don't think brew can do much about it.

    This, unfortunately. Homebrew can't do anything.

  5. underyx commented on Nov 2, 2016

    @underyx

    What could cause such an error for two people at the same time while being
    unreproducible outside Homebrew? Maybe the issue is somehow with ruby?

    On Wed, Nov 2, 2016, 7:13 PM Mike McQuaid [email protected] wrote:

    probably a system/networking error. i don't think brew can do much about
    it.

    This, unfortunately. Homebrew can't do anything.

    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub
    #1414 (comment), or mute
    the thread
    https://github.com/notifications/unsubscribe-auth/ABAuVMGWIYn7_jhjJHGnfED4p_Em5LbXks5q6NLUgaJpZM4Kkk_7
    .

  6. MikeMcQuaid commented on Nov 2, 2016

    @MikeMcQuaid
    Member

    @underyx Any number of issues with ISP, DNS providers, proxy providers, etc.

  7. danielsdesk commented on Nov 8, 2016

    @danielsdesk

    I, too, just had this problem start all of a sudden within the past few days. It's definitely not Homebrew as mentioned above; I ended up doing

    git config --global --unset http.proxy 
    git config --global --unset https.proxy
    

    and then restarting my term session and it works again

  8. samplenull commented on Dec 2, 2016

    @samplenull

    @danielsdesk Thank you so much, I had the exact same issue today, your fix resolved this problem.

  9. locked and limited conversation to collaborators on Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions