Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • NetworkManager NetworkManager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 170
    • Issues 170
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • NetworkManagerNetworkManager
  • NetworkManagerNetworkManager
  • Merge requests
  • !1504

core: nm-dns-dnsmasq: listen on ipv6 localhost too

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Jiri Slaby requested to merge jirislaby/NetworkManager:localhost into main Jan 17, 2023
  • Overview 3
  • Commits 1
  • Pipelines 1
  • Changes 1

Trying to resolve hosts using localhost errors out for ipv6 attempts: $ host www.seznam.cz localhost ;; communications error to ::1#53: connection refused ;; communications error to ::1#53: connection refused Using domain server: Name: localhost Address: 127.0.0.1#53 Aliases:

www.seznam.cz has address 77.75.77.222 www.seznam.cz has address 77.75.79.222 ;; communications error to ::1#53: connection refused ;; communications error to ::1#53: connection refused www.seznam.cz has IPv6 address 2a02:598:a::79:222 www.seznam.cz has IPv6 address 2a02:598:2::1222 ;; communications error to ::1#53: connection refused ;; communications error to ::1#53: connection refused

It's because on some distros (like openSUSE), localhost is defined both as 127.0.0.1 and ::1.

So listen on ::1 too. This makes ipv4-switchoff easier. /etc/resolv.conf should likely be updated to contain ::1 eventually too (see update_dns()).

Fixes: #1188

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: localhost