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

Reverse resolution on FreeBSD #16

Open
rsyncnet opened this issue Nov 30, 2018 · 1 comment
Open

Reverse resolution on FreeBSD #16

rsyncnet opened this issue Nov 30, 2018 · 1 comment
Assignees

Comments

@rsyncnet
Copy link

Hello,

I am using ngrep on FreeBSD and I cannot see how to enable reverse resolution of the IPs in the first line of the output ...

All of my output is IP only with no DNS names ... I only see a hostname if I dig deeper into the packet and look at HTTP requests (or something like that).

How can I enable reverse lookups of the IP traffic ?

Thank you.

@jpr5 jpr5 self-assigned this Dec 7, 2018
@jpr5
Copy link
Owner

jpr5 commented Dec 7, 2018

Hi there,

Unfortunately, this is by design. The logic has to do with speed/performance: DNS lookups are slow, especially if answers aren't in the cache. If you've ever used tcpdump with an unprimed DNS resolver, you'll have noticed that tcpdump hesitates everytime it prints out a resolved hostname. In doing so, there is a risk that PCAP will drop packets -- and ngrep's primary use case is very rapid, high-throughput packet analysis.

If you wanted to add the functionality, I'd accept a patch for it. FWIW you're the first in almost 20 years to ask for the feature.

Thanks for reaching out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants