Package Details: passivedns-git r283.3f387d0-2

Git Clone URL: (read-only, click to copy)
Package Base: passivedns-git
Description: A network sniffer that logs all DNS server replies for use in a passive DNS setup
Upstream URL:
Keywords: dns monitor network pcap
Licenses: GPLv2
Provides: passivedns
Submitter: whoisroot
Maintainer: hexhu
Last Packager: hexhu
Votes: 0
Popularity: 0.000000
First Submitted: 2019-04-03 15:21
Last Updated: 2020-10-26 03:01

Required by (0)

Sources (2)

Latest Comments

hexhu commented on 2020-09-28 15:17

@m040601 looooool glad to see gamelinux got the recovery codes back


Updated PKGBUILD w/ passivedns.service:

Yeah a systemd unit would be cool. Here is a skeleton:


Description=A network sniffer that logs all DNS server replies for use in a passive DNS setup
# Not sure whether should be required

## log to syslog
#ExecStart=/usr/bin/passivedns -y
# log to /var/log/passivedns.log


m040601 commented on 2020-09-18 16:14

@hexhu: thanks for the tip. I really hate packages using non standard locations.

In the mean while, good news. I went to github to check the status of this project. The absent owner has returned, patched it, and seems eager to continue supporting it.

I see, the original submitter, whoisroot, only has this package in AUR. Is there someone here who wants to take over this AUR package and update it, in case whoisroot doesnt show that interest ?

Another idea, would be to add a systemd service for this package.

There are other classical tools, one can use, like tcpdump or ngrep. And of course heavy stuff like wireshark and tshark.

But this is an extremely simple and usefull little tool for collecting just dns requests, when one's main focus is just that. Think of the case, each and every day more relevant, "I want to know who is my computer/browser phoning home"

It can log to either a text file or, very interesting, to journald (syslog), it is very usefull for long time analyses, and post processing. Just by using other tools and machinery already part of your system.

hexhu commented on 2020-09-16 11:50

@m040601 yeah it's non-standard, to fix it replace ./configure with ./configure --prefix=/usr in build(). Here is the PKGBUILD I use:

$ pacman -Ql passivedns-git

passivedns-git /usr/
passivedns-git /usr/bin/
passivedns-git /usr/bin/passivedns

After installing the new package, all folders under /usr/local are empty except /usr/local/share/ which contains a dead softlink, so I just cleaned it up

m040601 commented on 2020-09-11 05:14

....  a patch is required ...

@hexhu: Good catch. Thanks for the info. Was just about to test this usefull tool

I applied the patch and it compiled. But then I noticed this:

$ pacman -Ql passivedns-git

passivedns-git /usr/
passivedns-git /usr/local/
passivedns-git /usr/local/bin/
passivedns-git /usr/local/bin/passivedns

Any reason for this package being installed in a non standard location ?

hexhu commented on 2020-09-10 10:09

For anyone encountered the error below, a patch is required to build passivedns with gcc10, as in

gcc -o passivedns passivedns.o dns.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lpcap -lldns
/usr/bin/ld: dns.o:(.bss+0x7c00): multiple definition of `config'; passivedns.o:(.bss+0x80040): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:600: passivedns] Error 1
make[1]: Leaving directory '/dev/shm/makepkg/passivedns-git/src/passivedns/src'
make: *** [Makefile:345: all-recursive] Error 1
==> ERROR: A failure occurred in build().
error making: passivedns-git

Full log: