Skip to content

[Bug] Unable to parse IPv6 link-local resolvers from resolv.conf #512

Open
@maxmouchet

Description

@maxmouchet

Describe the bug

This is my /etc/resolv.conf file:

nameserver fe80::4aa9:8aff:febd:c390%en9
nameserver 192.168.255.1

If I run zdns without specifying name servers:

echo "google.com" | zdns A
FATA[0000] unable to parse resolvers file, please use '--name-servers':
could not parse IP address ([fe80::4aa9:8aff:febd:c390%en9]:53) from file: /etc/resolv.conf

To Reproduce

zdns 2.0.0 on macOS 15.2 (arm64).

Expected behavior

This is a valid resolv.conf entry, so zdns should be able to use it, or at-least ignore it.

Activity

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions