The "host" command is easier to use than dig, at least for me. https://www.geeksforgeeks.org/host-command-in-linux-with-exa...
In recent years I've dealt with naming so little that I end up relying on getent, which is great until it's time to look into anything DNS specific.