Hello, I am a new user in bind9. I have setup my DNS server with port 53, port 443 (DoH), and port 853 (DoT). And now, in my logging file of `queries` category, one query example shows as below:
26-Nov-2024 03:55:41.524 queries: info: client @0x7f21ba9b3000 111.11.11.109#61713 (ust.hk): query: ust.hk IN A +E(0)TK (111.111.111.999) For the `queries` log like this, how can I print the service port number used by the client? For example, for this `queries` log, what I want to get is with the service port number as below: 26-Nov-2024 03:55:41.524 queries: info: client @0x7f21ba9b3000 111.11.11.109#61713 (ust.hk): query: ust.hk IN A +E(0)TK (111.111.111.999#443) 26-Nov-2024 03:55:41.524 queries: info: client @0x7f21ba9b3000 111.11.11.109#61713 (ust.hk): query: ust.hk IN A +E(0)TK (111.111.111.999#853) 26-Nov-2024 03:55:41.524 queries: info: client @0x7f21ba9b3000 111.11.11.109#61713 (ust.hk): query: ust.hk IN A +E(0)K (111.111.111.999#53) How should I set up the logging config options to log the service port number? I have searched for this question on Google, and asked ChatGPT, but I only got answers to use other tools, like tcpdump. Is it possible to just config bind9 named.conf.* for this? Thanks.
publickey - cyberfoxmeow@proton.me - 0x8221F940.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
-- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users