Basic

$ dig example.com

Trace

$ dig @8.8.8.8 A example.com +noedns +trace