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

bug: /etc/hosts is not respected #533

Closed
notramo opened this issue Apr 30, 2023 · 6 comments
Closed

bug: /etc/hosts is not respected #533

notramo opened this issue Apr 30, 2023 · 6 comments
Labels

Comments

@notramo
Copy link

notramo commented Apr 30, 2023

trippy doesn't respect the content of /etc/hosts

@fujiapple852
Copy link
Owner

fujiapple852 commented Apr 30, 2023

Thank you for the bug report @notramo. Can you confirm:

  • The OS you are running on
  • The trippy version
  • The trippy command line arguments, in particular whether you are using the -r or --dns-resolve-method flags
  • If the issue is with resolving hostnames to IPs or reverse lookup of hostnames from IPs

By default, trippy uses the libc provided getaddrinfo and getnameinfo functions (indirectly via the dns-lookup crate).

@fujiapple852 fujiapple852 self-assigned this Apr 30, 2023
@fujiapple852 fujiapple852 added bug Something isn't working triage dns labels Apr 30, 2023
@fujiapple852
Copy link
Owner

Confirmed that trippy respects entries from /etc/hosts for both DNS lookups and reverse DNS lookups when using the system resolver (tested on Linux).

@notramo can you confirm on the details above?

@notramo
Copy link
Author

notramo commented May 5, 2023

I didn't have time to test it yet as it's not shipped on Void Linux, and I would have to compile the latest release from source because there is no musl binary release provided.

@fujiapple852
Copy link
Owner

fujiapple852 commented May 6, 2023

Thanks @notramo, we can leave this open for now.

Note that musl builds have been re-enabled for 0.8.0 (they were disabled for 0.7.0 due to #456)

I’m not familiar with Void Linux, is there a package manager / repository that trippy could be added to so that it can be installed on that platform?

Added a help wanted packaging request for Void Linux: #547

@fujiapple852
Copy link
Owner

@notramo 0.8.0 has been released and includes a musl build: https://github.com/fujiapple852/trippy/releases/tag/0.8.0

@notramo
Copy link
Author

notramo commented May 15, 2023

@fujiapple852, I have tried the latest version, and it worked.

@notramo notramo closed this as completed May 15, 2023
@fujiapple852 fujiapple852 removed bug Something isn't working triage labels May 18, 2023
@fujiapple852 fujiapple852 removed their assignment Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants