How can I resolve hostname to ip using different DNS servers?
Yes you can with the tools @pawel7318 mentioned.
dig
dig @nameserver hostname
nslookup
nslookup hostname nameserver
host
host hostname nameserver
I believe
nslookup -q= < record type > < host > < DNS server >
will make the trick for you.