Upon session termination, the client sends a SIP BYE message to the server using the SIP URI provided in the SIP OK. See above.
By default, NSS uses its hostname to compose the SIP contact header field, which in your case is not resolvable. This is where all the DNS queries were coming from.
You have two options: either ensure proper DNS resolving or configure NSS to use its IP address instead. I'd favor the latter since it is more efficient. Here is the relevant configuration parameter in NSSserver.cfg
server.mrcp2.sip.contact.useHostIPAddress
VXIInteger 1
I'd also suggest to make a network capture and inspect the SIP dialog.