Coincidentally, pdns_recursor's effective port is available in its output when it is started
This attached simple patch against the current pdns-recursor init script updates resolvconf with sensitivity to pdns_recursor running on an alternate port
Best wishes!
Jack
pdns-recursor.init.patch
Description: Binary data