Skip to content

Anjasfedo/go-email-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Email Domain Checker 🌐

This Go program checks email domain information including MX records, SPF records, and DMARC records. It prompts the user to input a domain and outputs relevant information.

Usage 🚀

Run the program:

go run main.go

Enter an email domain (e.g., google.com) when prompted, and the program will display relevant information about the email domain.

Code Explanation 📜

Main Program (main.go) 🧑‍💻

  • The program uses the net package to perform DNS lookups for MX, TXT, and DMARC records.
  • User input is obtained using bufio.Scanner reading from os.Stdin.
  • The checkDomain function processes the domain information and prints the results.

checkDomain Function 🕵️‍♂️

  • The function looks up MX records to check if the domain has mail servers.
  • It looks up TXT records to find SPF (Sender Policy Framework) records.
  • It looks up DMARC records by appending "_dmarc." to the domain and checking TXT records.
  • The results are printed to the console in a CSV-like format.

Closing Notes 📝

If you find any issues or have suggestions for improvement, please feel free to open an issue.

Happy coding! 🚀👨‍💻

Releases

No releases published

Packages

No packages published

Languages