Tracking down the authoritative nameserver
The authoritative nameserver for host myhost.mydomain.com
can be found with
dig myhost.mydomain.com +trace.
Reverse lookup is with dig -x 189.165.13.239 +trace.
dig
Is part of the dnsutils
package under Debian.