[dnsdist] dnstap unix socket not created
Derrick Lim
derrickltl at gmail.com
Mon May 11 04:22:44 UTC 2020
Hi,
I'm trying to use dnstap logging, but the unix socket doesn't seem to
be created.
I've looked through the previous messages here on the mailing list and
checked the systemd private directory as well the specified directory,
but there doesn't seem to be anything there.
What am I missing?
# config
logger = newFrameStreamUnixLogger("/tmp/d.sock")
addAction(AllRule(), DnstapLogAction("log1", logger))
# console
showRules() outputs the following which indicates that things seem to
be working well.
> showRules()
# Matches Rule Action
0 3 All
remote log as dnstap to FrameStreamLogger to /tmp/d.sock (3 frames
sent, 0 dropped, 0 permanent failures)
# dnsdist -V
dnsdist 1.5.0-rc1 (Lua 5.1.4 [LuaJIT 2.1.0-beta3])
Enabled features: cdb dns-over-tls(gnutls openssl) dns-over-https(DOH)
dnscrypt ebpf fstrm ipcipher libsodium lmdb protobuf re2
recvmmsg/sendmmsg snmp systemd
# ls -al /tmp/systemd-private-*-dnsdist.service-*/tmp
total 8
drwxrwxrwt 2 root root 4096 May 11 04:05 .
drwx------ 3 root root 4096 May 11 04:05 ..
# ls -al /tmp/d.sock
ls: cannot access '/tmp/d.sock': No such file or directory
# lsof -p 15977 -nP
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsdist 15977 _dnsdist cwd DIR 8,1 4096 2 /
dnsdist 15977 _dnsdist rtd DIR 8,1 4096 2 /
dnsdist 15977 _dnsdist txt REG 8,1 6826936
6173 /usr/bin/dnsdist
dnsdist 15977 _dnsdist mem REG 8,1 31032
6211 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
dnsdist 15977 _dnsdist mem REG 8,1 39208
2082 /lib/x86_64-linux-gnu/libcrypt-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 97176
2087 /lib/x86_64-linux-gnu/libnsl-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 84032
2069 /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
dnsdist 15977 _dnsdist mem REG 8,1 526688
6220 /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
dnsdist 15977 _dnsdist mem REG 8,1 211704
6224 /usr/lib/x86_64-linux-gnu/libhogweed.so.4.4
dnsdist 15977 _dnsdist mem REG 8,1 219304
6259 /usr/lib/x86_64-linux-gnu/libnettle.so.6.4
dnsdist 15977 _dnsdist mem REG 8,1 75776
6267 /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.5
dnsdist 15977 _dnsdist mem REG 8,1 1562664
6269 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.
dnsdist 15977 _dnsdist mem REG 8,1 116656
17037 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.3
dnsdist 15977 _dnsdist mem REG 8,1 1237640
6261 /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0
dnsdist 15977 _dnsdist mem REG 8,1 116960
2188 /lib/x86_64-linux-gnu/libz.so.1.2.11
dnsdist 15977 _dnsdist mem REG 8,1 2083216
6302 /usr/lib/x86_64-linux-gnu/libperl.so.5.26.1
dnsdist 15977 _dnsdist mem REG 8,1 39784
2293 /lib/x86_64-linux-gnu/libwrap.so.0.7.6
dnsdist 15977 _dnsdist mem REG 8,1 1159864
6206 /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
dnsdist 15977 _dnsdist mem REG 8,1 112672
4770 /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
dnsdist 15977 _dnsdist mem REG 8,1 153984
2097 /lib/x86_64-linux-gnu/liblzma.so.5.2.2
dnsdist 15977 _dnsdist mem REG 8,1 31680
2185 /lib/x86_64-linux-gnu/librt-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 170784
2101 /lib/x86_64-linux-gnu/libtinfo.so.5.9
dnsdist 15977 _dnsdist mem REG 8,1 14560
2083 /lib/x86_64-linux-gnu/libdl-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 2030544
2080 /lib/x86_64-linux-gnu/libc-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 96616
7695 /lib/x86_64-linux-gnu/libgcc_s.so.1
dnsdist 15977 _dnsdist mem REG 8,1 1700792
2084 /lib/x86_64-linux-gnu/libm-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 1594864
4656 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
dnsdist 15977 _dnsdist mem REG 8,1 22368
71855 /usr/lib/x86_64-linux-gnu/libwslay.so.1.0.1
dnsdist 15977 _dnsdist mem REG 8,1 144976
2183 /lib/x86_64-linux-gnu/libpthread-2.27.so
dnsdist 15977 _dnsdist mem REG 8,1 2460936
70961 /usr/lib/x86_64-linux-gnu/libprotobuf.so.10.0.0
dnsdist 15977 _dnsdist mem REG 8,1 428712
61073 /usr/lib/x86_64-linux-gnu/libh2o-evloop.so.0.13.4
dnsdist 15977 _dnsdist mem REG 8,1 1461856
6219 /usr/lib/x86_64-linux-gnu/libgnutls.so.30.14.10
dnsdist 15977 _dnsdist mem REG 8,1 83952
71770 /usr/lib/x86_64-linux-gnu/liblmdb.so.0.0.0
dnsdist 15977 _dnsdist mem REG 8,1 2917216
71743 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
dnsdist 15977 _dnsdist mem REG 8,1 577312
71744 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
dnsdist 15977 _dnsdist mem REG 8,1 551728
70998 /usr/lib/x86_64-linux-gnu/libre2.so.4.0.0
dnsdist 15977 _dnsdist mem REG 8,1 14448
13549 /usr/lib/x86_64-linux-gnu/libcdb.so.1
dnsdist 15977 _dnsdist mem REG 8,1 22768
2206 /lib/x86_64-linux-gnu/libcap.so.2.25
dnsdist 15977 _dnsdist mem REG 8,1 680760
71843 /usr/lib/x86_64-linux-gnu/libnetsnmp.so.30.0.3
dnsdist 15977 _dnsdist mem REG 8,1 424136
71844 /usr/lib/x86_64-linux-gnu/libnetsnmpagent.so.30.0.3
dnsdist 15977 _dnsdist mem REG 8,1 536648
132 /lib/x86_64-linux-gnu/libsystemd.so.0.21.0
dnsdist 15977 _dnsdist mem REG 8,1 38976
84064 /usr/lib/x86_64-linux-gnu/libfstrm.so.0.0.0
dnsdist 15977 _dnsdist mem REG 8,1 330440
64170 /usr/lib/x86_64-linux-gnu/libsodium.so.23.1.0
dnsdist 15977 _dnsdist mem REG 8,1 208080
6352 /usr/lib/x86_64-linux-gnu/libedit.so.2.0.56
dnsdist 15977 _dnsdist mem REG 8,1 494376
71780 /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2.1.0
dnsdist 15977 _dnsdist mem REG 8,1 170960
2076 /lib/x86_64-linux-gnu/ld-2.27.so
dnsdist 15977 _dnsdist 0r CHR 1,3 0t0
6 /dev/null
dnsdist 15977 _dnsdist 1u unix 0xffff999b28212800 0t0
117289 type=STREAM
dnsdist 15977 _dnsdist 2u unix 0xffff999b28212800 0t0
117289 type=STREAM
dnsdist 15977 _dnsdist 3u unix 0xffff999b28216000 0t0
117294 type=DGRAM
dnsdist 15977 _dnsdist 4u IPv4 117299 0t0
UDP 127.0.0.1:5300
dnsdist 15977 _dnsdist 5u IPv4 117295 0t0
TCP 127.0.0.1:5999 (LISTEN)
dnsdist 15977 _dnsdist 6u IPv4 117300 0t0
TCP 127.0.0.1:5300 (LISTEN)
dnsdist 15977 _dnsdist 7u a_inode 0,13 0
12683 [eventpoll]
dnsdist 15977 _dnsdist 8u IPv4 117298 0t0
UDP 100.94.141.9:46042->100.94.141.9:53
dnsdist 15977 _dnsdist 9r FIFO 0,12 0t0 117301 pipe
dnsdist 15977 _dnsdist 10w FIFO 0,12 0t0 117301 pipe
dnsdist 15977 _dnsdist 11u a_inode 0,13 0
12683 [eventpoll]
dnsdist 15977 _dnsdist 12r FIFO 0,12 0t0 117942 pipe
dnsdist 15977 _dnsdist 14w FIFO 0,12 0t0 117942 pipe
dnsdist 15977 _dnsdist 16u a_inode 0,13 0
12683 [eventpoll]
root at dev-gslb101:~#
Regards,
Derrick
More information about the dnsdist
mailing list