Apps can't connect to database - DNS lookup issue

This is the exact issue I have. FQDM in pgbouncer can be changed for postgres v1, but not sure how to change it in v2? Please help!