sudo runs a single command with root permissions.
su switches user to it's first argument (defaults to root).
su -c whoami would have the same output as sudo whoami, but they use different auth mechanisms.
The sudoers file at /etc/sudoers should be edited using visudo.
Prefer dig as nslookup is deprecated.