Hi misc,
on my intranet i have unbound and nsd running, both on the same
machine. unbount is listening on port 53, nsd is listening on port
5353 on 127.0.0.1. If i run
dig @127.0.0.1 -p 53 foo.bar
everything is fine. But if I want to query nsd direct with
dig @127.0.0.1 -p 5353 foo.bar
dig core dumps and I can read the following line in /var/log/messages:
Jan 21 18:42:44 ws /bsd: dig[59239]: pledge "dns", syscall 28
If I ktrace I get the following lines (tail'ed):
32727 dig CALL kbind(0xcf7bd338,12,0xabb1616d1bb3edc2)
32727 dig RET kbind 0
32727 dig CALL kbind(0xcf7bd130,12,0xabb1616d1bb3edc2)
32727 dig RET kbind 0
32727 dig CALL sendmsg(20,0xcf7bd1c0,0)
32727 dig STRU struct msghdr { name=0x58362254, namelen=16,
iov=0xcf7bd2d8, iovlen=1, control=0x0, controllen=0, flags=0 }
32727 dig STRU struct iovec { base=0x7762e000, len=38 }
32727 dig PLDG sendmsg, "dns", errno 1 Operation not permitted
32727 dig PSIG SIGABRT SIG_DFL
32727 dig NAMI "dig.core"
The issue can be easily reporduced with any other port. No need to
have a nsd running.
Regards
Dieter