OS X doesn't query local DNS names properly
I think the key to your issue might be that your internal DNS is "non-authorative" (see the output from nslookup), suggested in the answer to this question: DNS resolves servers external IP instead of internal IP
If you run nslookup -type=soa riker.example.com is the "origin" server your local or public DNS server?