Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oxidized/Ruby prefers IPv4 address over IPv6 address resolved from DNS #3241

Open
ewysong opened this issue Aug 8, 2024 · 3 comments
Open

Comments

@ewysong
Copy link

ewysong commented Aug 8, 2024

I'm running Oxidized on Ubuntu 22.04 with dual stack IPv4/IPv6, and trying to back up the configuration of some devices that are not reachable from this server via IPv4, only IPv6. There are A and AAAA records for the device.

The problem I'm running into is that Oxidized (Ruby?) is using A record instead of the AAAA record to chose the IP address to try and connect to for the backup. I can see this in packet captures and from the Oxidized web it lists the IPv4 address as well. AAAA records should be preferred and tried first from my understanding. If I remove the A record from DNS, Oxidized works just fine as it uses the AAAA record and successfully connects.

I'd like to leave the A records in DNS and not have to add /etc/hosts entries on the server for every device.

oxidized-web v.0.14.0
oxidized v.0.30.1
ruby 3.3.4-p94

Thanks for any assistance!

@robertcheramy
Copy link
Collaborator

A better way would be to have oxidized try all available IP address until it gets a connection.

Copy link

github-actions bot commented Nov 8, 2024

This issue is stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the Stale label Nov 8, 2024
@dunc623b
Copy link

Same issue here.

@github-actions github-actions bot removed the Stale label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants