DNSPython is a command line tool that I made for one of networking distros. Its a simple multi level DNS lookup