---
title: MX Record Checker
url: "https://pressable-staging.mystagingwebsite.com/web-tools/mx-record-checker/"
published: 2025-03-28
modified: 2025-04-18
author: Wayne McWilliams
---

[ Web Tools ](/web-tools/) 

# Free MX Record Checker

Fetch and display your domain’s mail exchange records, enabling quick diagnosis and resolution of potential email delivery issues.

 
 

 
 Enter Domain:
 
  Check MX Records

 
 MX Info:
  

 if (!domainInput) { alert('Please enter a domain.'); return; }

 resultDiv.innerHTML = 'Retrieving MX records...';

 var data = new FormData(); data.append('action', 'press\_mx\_check'); data.append('domain', domainInput);

 fetch("https://pressable-staging.mystagingwebsite.com/wp-admin/admin-ajax.php", { method: 'POST', credentials: 'same-origin', body: data }) .then(function (response) { return response.json(); }) .then(function (response) { if (response.success) { var records = response.data; if (records.length === 0) { resultDiv.innerHTML = 'No MX records found for this domain.'; } else { var output = '**MX Records:**
'; records.forEach(function (record, index) { output += (index + 1) + ') Priority: ' + record.pri + ' | Target: ' + record.target + '
'; }); resultDiv.innerHTML = output; } } else { resultDiv.innerHTML = 'Error: ' + response.data + ''; } }) .catch(function () { resultDiv.innerHTML = 'An error occurred.'; }); }

 // Button click document.getElementById('press-mx-check-button').addEventListener('click', function () { runMXCheck(); });

 // Enter key support document.getElementById('press-mx-domain').addEventListener('keydown', function (event) { if (event.key === 'Enter') { event.preventDefault(); runMXCheck(); } });

 // Pre-fill + auto-submit from ?d=... const urlParams = new URLSearchParams(window.location.search); const prefillDomain = urlParams.get('d');

 if (prefillDomain && /^\[a-z0-9.-\]+$/i.test(prefillDomain)) { const input = document.getElementById('press-mx-domain'); input.value = prefillDomain; runMXCheck(); }
