One verification habit worth adopting: do not test with the tools that bypass the system resolver.
dig and nslookup talk to a nameserver directly and will happily give you a correct answer that has nothing to do with what your applications experience. getent hosts <name> or resolvectl query <name> goes through the actual system path.
More than half the "I changed it and it still does not work" reports I have seen are somebody testing with dig against the old server out of habit.