Skip to content

localhost resolves to 127.0.1.1 instead of 127.0.0.1 on bionic #10458

Closed
@marten-seemann

Description

/etc/hosts has the following entries:

127.0.1.1 localhost localhost ip4-loopback 
127.0.0.1 localhost nettuno travis vagrant travis-job-xxxx

This means that localhost is always resolved to 127.0.1.1 instead of 127.0.0.1.

Activity

close-issue-app

close-issue-app commented on Aug 17, 2019

@close-issue-app

Please post on https://travis-ci.community instead. Thank you!

nicolas-grekas

nicolas-grekas commented on Jun 9, 2021

@nicolas-grekas

sudo sed -i 's/127\.0\.1\.1 localhost/127.0.0.1 localhost/' /etc/hosts fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      localhost resolves to 127.0.1.1 instead of 127.0.0.1 on bionic · Issue #10458 · travis-ci/travis-ci