Skip to content

1.12.0 error: failed to list interfaces: getifaddrs: Address family not supported by protocol #350

Closed

Description

@dvzrv

Hi! I'm packaging unbound for Arch Linux.
I am currently trying to upgrade the package to 1.12.0. Unfortunately I am running into serious issues with the service right on start.
With my configuration file, compatible with 1.11.0 I am trying to start unbound.service, but it returns:

unbound[1610946:0] error: failed to list interfaces: getifaddrs: Address family not supported by protocol
unbound[1610946:0] fatal error: could not open ports

I see that f6a527c has changed the behavior of the *interface: settings in the configuration. Unfortunately, this doesn't seem to work out of the box with the systemd unit anymore (or because of another problem?).

Even if I provide interface names to the respective *interface: configuration settings, I get the above error message.

Activity

  1. dvzrv commented on Nov 21, 2020

    @dvzrv
    ContributorAuthor

    Okay, after some investigation I have found the issue.

    It seems that the systemd service now requires AF_NETLINK in the RestrictAddressFamilies setting for the aforementioned changes to work and the service not to fail right away.

    I'll open a pull request for this.

  2. added a commit that references this issue on Nov 23, 2020
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