To check the MX records using nslookup, you can follow these steps:
Open your command prompt or terminal. Type nslookup and press Enter. Type set type=mx and press Enter. Enter the domain name you wish to check, e.g., example.com, and press Enter.
This will display the MX records for the specified domain, helping you verify if the email servers are correctly configured.