`;const ta = root.querySelector('#dns-lines'); const btnRun = root.querySelector('#dns-run'); const btnStop = root.querySelector('#dns-stop'); const btnClear = root.querySelector('#dns-clear'); const typesWrap = root.querySelector('#dns-types'); const statusEl = root.querySelector('#dns-status'); const errorEl = root.querySelector('#dns-error'); const errorTextEl = root.querySelector('#dns-error-text'); const resultsEl = root.querySelector('#dns-results'); const delayInput = root.querySelector('#dns-delay'); const btnCopy = root.querySelector('#dns-copy-table'); const countEl = root.querySelector('#dns-count'); const progressEl = root.querySelector('#dns-progress'); const progressBarEl = root.querySelector('#dns-progress-bar'); const runTextEl = root.querySelector('#run-text');// Type pills với DPS branding const TYPE_LABELS = { 'ALL': 'TẤT CẢ', 'A': 'A', 'CNAME': 'CNAME', 'MX': 'MX', 'NS': 'NS', 'TXT': 'TXT' };let activeType = 'A'; RECORDS.forEach(t => { const b = document.createElement('button'); b.textContent = TYPE_LABELS[t] || t; b.className = 'dns-type-btn'; if (t === activeType) { b.classList.add('active'); } b.addEventListener('click',()=>{ if (isRunning) return; activeType = t; [...typesWrap.children].forEach(c => c.classList.remove('active')); b.classList.add('active'); }); typesWrap.appendChild(b); });// Domain count tracker với DPS colors function updateDomainCount() { const domains = ta.value.split(/\r?\n/) .map(s=>extractHostname(s)) .filter(Boolean); countEl.textContent = `${domains.length} tên miền`; if (domains.length > 100) { countEl.style.background = 'rgba(220,38,38,0.9) !important'; countEl.style.color = 'white !important'; } else if (domains.length > 50) { countEl.style.background = 'rgba(245,158,11,0.9) !important'; countEl.style.color = 'white !important'; } else if (domains.length > 0) { countEl.style.background = 'rgba(50,181,97,0.9) !important'; countEl.style.color = 'white !important'; } else { countEl.style.background = 'rgba(21,21,119,0.9) !important'; countEl.style.color = 'white !important'; } }ta.addEventListener('input', updateDomainCount); updateDomainCount();function clampDelay(){ let v = Number(delayInput.value || 0); if (!Number.isFinite(v) || v { if (e.key === '-') e.preventDefault(); });function extractHostname(input){ if(!input) return ''; try{ return new URL(input).hostname.replace(/\.$/,''); } catch(e){ return String(input).trim().replace(/^https?:\/\//i,'').replace(/^\/*/,'').split('/')[0].split('?')[0].replace(/\.$/,''); } }function sleep(ms){ return new Promise(r=>setTimeout(r, ms)); }function clearError(){ errorEl.style.display='none'; errorTextEl.textContent=''; } function showError(msg){ errorEl.style.display='flex'; errorTextEl.textContent=msg; } function setStatus(msg){ statusEl.textContent = msg; }function updateProgress(current, total) { if (total === 0) { progressEl.style.display = 'none'; return; } progressEl.style.display = 'block'; const percentage = Math.min((current / total) * 100, 100); progressBarEl.style.width = `${percentage}%`; }// Render table với DPS branding - Sử dụng div thay vì table elements function ensureTable(){ if(resultsEl.firstChild && resultsEl.firstChild.classList && resultsEl.firstChild.classList.contains('dns-table')) return resultsEl.firstChild; resultsEl.innerHTML = ''; const table = document.createElement('div'); table.className = 'dns-table'; const isMobile = window.innerWidth
`; resultsEl.appendChild(table); return table; }const allRows = []; function appendRows(rows){ const table = ensureTable(); const tbody = table.querySelector('.dns-table-body'); const frag = document.createDocumentFragment(); const isMobile = window.innerWidth { allRows.push(r); const tr = document.createElement('div'); tr.className = 'dns-table-row'; let dataColor = '#374151'; if (r.data === '(không có dữ liệu)') dataColor = '#9ca3af'; else if (r.data && r.data.startsWith('Lỗi:')) dataColor = '#dc2626'; tr.innerHTML = `
`; frag.appendChild(tr); }); tbody.appendChild(frag); btnCopy.disabled = false; btnCopy.classList.remove('success'); }async function queryDoH(domain, type){ const base = 'https://dns.google/resolve'; const params = new URLSearchParams(); params.set('name', domain); params.set('type', TYPE_CODE[type]); const url = `${base}?${params.toString()}`; const res = await fetch(url, { headers: { 'Accept':'application/json' }}); if(!res.ok) throw new Error(`HTTP ${res.status}`); return await res.json(); }let abortFlag = false; let isRunning = false;btnStop.addEventListener('click', ()=>{ abortFlag = true; setStatus('🛑 Đang dừng...'); });btnClear.addEventListener('click', () => { if (isRunning) return; resultsEl.innerHTML = `
`;
allRows.length = 0;
btnCopy.disabled = true;
btnCopy.classList.remove('success');
clearError();
setStatus('');
progressEl.style.display = 'none';
});btnRun.addEventListener('click', async ()=>{
if (isRunning) return;
clearError();
allRows.length = 0;
abortFlag = false;
isRunning = true;btnRun.disabled = true;
runTextEl.textContent = '⏳ Đang chạy...';
btnStop.style.display = 'block';
btnClear.style.display = 'none';
[...typesWrap.children].forEach(b => {
b.style.cursor = 'not-allowed';
b.style.opacity = '0.6';
});const delay = clampDelay();const domains = ta.value.split(/\r?\n/)
.map(s=>extractHostname(s))
.filter(Boolean);if (!domains.length){
showError('Vui lòng nhập ít nhất 1 tên miền.');
resetUIState();
return;
}
if (domains.length > 100){
showError('Giới hạn 100 tên miền mỗi lần để tránh quá tải. Hãy chia nhỏ danh sách.');
resetUIState();
return;
}const types = (activeType==='ALL') ? [...POPULAR] : [activeType];
const totalQueries = domains.length * types.length;resultsEl.innerHTML = '';
ensureTable();let completed = 0;
for (let i=0; i
DPS.MEDIA, với kinh nghiệm tư vấn digital marketing cho hàng trăm SMEs, nhấn mạnh việc kiểm tra này giúp ngăn chặn mất mát dữ liệu và tăng hiệu quả vận hành trực tuyến.
Decoding the role of DNS in the online business strategy of SMEs
Why is DNS an important layer infrastructure?
DNS (Domain Name System) không chỉ là ”sổ danh bạ” của internet, mà còn là cầu nối đảm bảo mọi truy cập đến website, email và ứng dụng đều diễn ra mượt mà và chính xác.Với SMEs, việc quản lý DNS đúng cách quyết định đến:
- Page loading speed: Reducing server response time (TTFB) helps improve user experience.
- SEO ranking: Google prioritizes websites with fast and stable response.
- Security: Avoid DNS Spoofing attacks and DNS redirect fraud.
According to the Global DNS Performance report (ThousandEyes, 2023), just a 500ms increase in DNS lookup can reduce the average e-commerce conversion rate by 12%.
DNS records directly affect business operations
The three most common DNS records SMEs need to understand and regularly check:
- A record: Maps domain name to a specific IP address. Incorrect IP record causes the website to be inaccessible.
- MX record: Xác định máy chủ email nhận thư – sai cấu hình có thể khiến email thất lạc.
- CNAME & TXT: Often used for authenticating marketing services (Google, Facebook Pixel, Mailchimp, etc.)
Periodic DNS check checklist for businesses
| Items to check | Frequency | Recommended tools |
|---|---|---|
| A record (accurate IP mapping) | Once a month | DNS Checker, Pingdom |
| MX record (stable email operation) | Once every 2 weeks | MXToolbox, Google Admin Toolbox |
| Check CNAME/TXT errors | When integrating new tools | NSLookup, DNSSpy |
Real-world example: A small mistake, big damage
An SME specializing in selling cosmetics in Ho Chi Minh City once lost all email marketing traffic for 3 days just because they forgot to update the MX record after switching email providers. Result: Over 1,000 sent emails were returned, reducing order volume from email channels by 23% compared to the previous week. Estimated loss exceeded 11 million VND.
Hidden challenges if you skip DNS
- Website downtime: Wrong configuration causes service interruption, losing customer trust.
- Information leak: DNS attacks or spoofing can lead to loss of personal user data.
- Email to spam folder: Missing authentication records cause emails not to reach customers.
Brief takeaway:
A stable DNS is the sustainable online business operation platform for SMEs. Prioritize regularly checking DNS records as part of brand protection and revenue strategy.
Distinguish and clearly understand the important types of DNS records for domain names
1. Bản ghi A – Định tuyến địa chỉ IP
– Bản ghi A (Address) connects domain names with server IP addresses (IPv4).
– Là loại quan trọng nhất giúp trình duyệt xác định nơi đặt website.
– Ví dụ thực tế: www.example.com => 192.168.1.10
Tip: Nếu website không thể truy cập, hãy kiểm tra lại bản ghi A và đảm bảo IP đúng & đang hoạt động.
2. MX record - Email routing to servers
– MX (Mail exchange) directs emails to the appropriate mail server.
– Phải luôn thiết lập đúng theo thứ tự ưu tiên (Priority) để đảm bảo email đến đúng nơi.
– Tình huống thực tế: Nhiều doanh nghiệp nhỏ không nhận được email do sai bản ghi MX, đặc biệt khi chuyển hosting.
3. Other commonly used DNS records
– CNAME: Redirects one subdomain to another domain name (e.g., blog.example.com → www.example.com)
– TXT: Used to verify domain ownership and set SPF, DKIM to prevent email spoofing.
– NS: Specifies DNS servers responsible for managing the domain name.
4. Practical DNS check checklist
- ✅ kiểm tra bản ghi A trỏ đúng IP (hoạt động & cập nhật mới nhất)
- ✅ Bản ghi MX có ít nhất 1 server chính & ưu tiên phù hợp
- ✅ Add SPF, DKIM records in TXT to protect email
- ✅ NS trỏ về đúng nhà cung cấp DNS (cloudflare, Google DNS…)
5. Specific examples from real users
A small business website (anonymous) was offline for 36 hours due to hosting IP change but no A record update. Simultaneously, company email was down due to missing MX records. After using free DNS checking tools like MxToolbox in 2023, the issues were detected and resolved within 15 minutes.
Illustration of common DNS record types
| Record type | Main function | Example |
|---|---|---|
| A | Maps domain name to IP | example.com → 192.168.1.100 |
| MX | Forwards email | 10 mail.example.com |
| CNAME | Alias domain name | shop.example.com ➝ www.example.com |
| TXT | Authentication information | v=spf1 include:_spf.google.com ~all |
6. Cảnh báo & thách thức
- Incorrect records may cause the website or email to not function.
- DNS changes may take up to 24-48 hours to fully update (according to ICANN, 2023).
– Nên thường xuyên rà soát DNS sau mỗi lần chuyển đổi hosting hoặc tên miền.
Takeaway: Hiểu rõ và kiểm tra các bản ghi DNS thường xuyên giúp giảm thiểu rủi ro gián đoạn website và email – đặc biệt quan trọng với doanh nghiệp nhỏ.

Guide to check A record to ensure stable and fast website operation
What is an A record and why check it?
– A record (Address Record) is a DNS record that maps a domain name to the IP address of the web hosting server.
– Nếu cấu hình sai A record, website có thể không tải được hoặc chậm bất thường.
– Kiểm tra định kỳ giúp xác định địa chỉ IP có đúng và đang hoạt động hay không.
Steps to accurately check A record
Checklist of steps you should take:
- Find out the current server IP (from hosting panel or provider like DPS.MEDIA).
- Access DNS checking tools such as: DNS Checker or MXToolbox.
- Nhập tên miền cần kiểm tra và chọn bản ghi “A Record”.
- Use terminal command:
nslookup tenmien.com(Windows/macOS/Linux). - Compare the returned IP with the expected IP.
Real example
A customer using shared hosting of DPS.MEDIA reported unusually slow website loading. After checking the A record, the domain still pointed to the old IP from the previous provider. After updating to the correct IP, the loading speed nearly doubled (average from 4.2s down to 2.1s according to GTmetrix 2023).
Template: Valid A record
| Domain name | Record type | Returned IP | TTL |
|---|---|---|---|
| example.com | A | 198.51.100.4 | 3600 |
Common risk warnings
– Cập nhật chưa hoàn tất nhưng đã di chuyển website → gây gián đoạn truy cập.
– Trỏ sai IP tại nhiều bản ghi phụ (www,api,mail) → lỗi xác thực SSL hoặc mất email.
- Changing IP without clearing DNS cache on devices → misinterpretation of website status.
Brief takeaway
Checking and maintaining correct A records helps websites operate stably, quickly, and avoid unwanted interruptions. Don’t forget to schedule regular checks – especially when changing hosting providers.
Tips to verify MX record help business emails avoid spam and boost reputation
Why MX record affects email reliability?
MX record determines which server is responsible for receiving emails for your domain. Incorrect configuration:
– Email gửi ra dễ bị đánh dấu spam hoặc từ chối nhận.
- Domain reputation decreases on filtering systems.
– Giảm tỷ lệ inbox, ảnh hưởng đến chiến dịch marketing và CSKH.
According to the Cisco Email Security 2023 report, up to 72% email spam triggered by incorrect MX record configuration of the domain.
Tip: Luôn đồng bộ giữa MX record và dịch vụ gửi email thực tế (như Google Workspace,Zoho Mail…)
Checklist to verify correct MX record
To ensure business emails are not marked as spam, please check the following:
- ✅ MX points to the correct mail server (e.g., ALT1.ASPMX.L.GOOGLE.COM for Google)
- ✅ No MX points incorrectly to wrong domain (e.g., pointing to old service)
- ✅ SPF, DKIM, DMARC are fully configured
- ✅ Use only one main sending service to avoid conflicts
Ví dụ thực tế: Một doanh nghiệp logistics tại TP.HCM từng cấu hình MX về cùng lúc 2 dịch vụ (Zoho & Outlook). Kết quả, 30% customer care emails were marked as spam. After adjusting the configuration and locking the old domain, the inbox rate increased by 89% (according to internal data).
How to check current MX record of a domain
You can use free lookup tools:
| Tool | Website |
|---|---|
| MXToolbox | mxtoolbox.com |
| Google Admin Toolbox | toolbox.googleapps.com |
| DNS Checker | dnschecker.org |
Warning: Tránh thay đổi MX record vào giờ cao điểm hoặc trong chiến dịch email lớn – có thể gây gián đoạn.
Takeaway:
Ensure MX record is configured correctly and consistently helps business emails avoid spam, improve communication quality and maintain brand reputation. Please check regularly every 3 months or before launching large email campaigns.
Use effective online tools to quickly check and monitor DNS information
Popular DNS check tools today
To quickly and accurately check domain DNS lookup, you can use the following free online tools:
– MXToolbox: supports lookup of A record, MX, CNAME, TXT and more.
– ViewDNS: view WHOIS info, DNS history, reverse IP.
– Google Admin Toolbox: detailed analysis of record values.
– IntoDNS: check DNS server structure according to ICANN standards.
Tip: Combining multiple tools will help detect DNS setup errors more accurately.
How to monitor DNS changes over time
Monitoring DNS changes regularly helps detect errors when server configuration or due to DNS hijacking attacks. You can:
– Lưu lại lịch sử A record, MX record mỗi lần cập nhật.
– Sử dụng dịch vụ như DNSSpy hoặc Cloudflare Analytics để theo dõi biến động.
– Cấu hình cảnh báo khi có thay đổi về bản ghi (A, MX, NS…).
Ví dụ: Một khách hàng của DPS.MEDIA sử dụng dịch vụ DNS Monitoring đã phát hiện A record bị thay đổi sau khi website chuyển hosting – nhờ đó tránh được lỗi downtime kéo dài.
Sample DNS configuration table
| Record type | Domain name | Value | TTL |
|---|---|---|---|
| A | example.com | 192.0.2.1 | 3600 |
| MX | example.com | mail.example.com (priority 10) | 3600 |
| TXT | example.com | v=spf1 include:_spf.example.net ~all | 3600 |
Quick DNS check checklist
– [ ] Xác minh A record trỏ đúng server hosting
– [ ] Đảm bảo MX record tương thích hệ thống mail đang dùng
– [ ] Kiểm tra cấu hình SPF, DKIM, DMARC nếu có gửi email
– [ ] Theo dõi TTL hợp lý để giảm thời gian cập nhật
– [ ] Sử dụng DNS Monitoring để cảnh báo thay đổi đột xuất
Challenges and notes when using online tools
– Một số công cụ chỉ hiển thị dữ liệu từ cache, không phản ánh bản ghi realtime.- Có thể gặp nhầm lẫn khi tên miền sử dụng nhiều DNS server phân tán.
– Nên kết hợp dữ liệu từ DNS server chính thức để đối chiếu kết quả.
Takeaway: Use flexible free DNS tools to help you not only check, mà còn chủ động giám sát hệ thống tên miền – từ đó giảm thiểu rủi ro gián đoạn website hoặc email doanh nghiệp.

Notes when updating DNS to avoid service interruption and impact on customers
Understand clearly DNS update time (DNS Propagation)
– Sau khi thay đổi bản ghi DNS, thời gian các máy chủ DNS trên toàn cầu cập nhật có thể mất từ 1 đến 48 giờ.
- During this time, some users may access the old version, causing inconsistent errors.
- Avoid changing DNS during peak hours or major sale events to minimize impact.
Tip: Reduce TTL (Time-To-Live) of records to 300 seconds at least 24 hours before to help shorten update time.
Check carefully before updating to avoid errors
– Sao lưu các bản ghi DNS hiện tại trước khi chỉnh sửa để dễ dàng phục hồi nếu cần.
- Check A record, MX record configuration using tools like Google Toolbox Dig or MXToolbox.- Ensure IP address in A record is accurate and email is not intercepted due to incorrect MX record.
| Record Type | Purpose | Check |
|---|---|---|
| A Record | Domain name points to IP | ping domain.com |
| MX Record | Gửi & nhận email | nslookup -type=MX domain.com |
Checklist: Things to do before updating DNS
- ✔ Backup current DNS records
- ✔ Reduce TTL to 300 seconds at least 24 hours before
- ✔ Confirm server IP and email information
- ✔ Run tests on staging environment (if available)
- ✔ Have a recovery plan in case of errors
Real examples from medium-sized businesses
An online retail company changed the A record to point to a new server but did not reduce TTL beforehand. The result is that within 12 hours, some customers saw the old website, some could not access it. According to DNS Performance 2023 report by CatchPoint, on average 32% SMB enterprises have experienced DNS issues due to lack of preparation.
Warning: Customers may lose trust if the website is not accessible or elayed email delivery in a few hours.
Takeaway:
Just a few small changes in DNS configuration, but lack of preparation can cause major interruptions. Be sure to backup, reduce TTL and carefully check configuration before proceeding.
Optimize DNS configuration alongside digital marketing strategy for sustainable business development
Why does DNS directly affect digital strategy?
DNS configuration not only helps the website display stably, but also affects page load speed - a key factor in SEO and user experience.
According to a report from Google (2023), every second delay in page load can reduce 7% conversion rate. Therefore, a business deploying digital marketing effectively must have DNS operates stably and quickly.
Checklist to optimize DNS supporting marketing activities
Businesses can apply the following steps to ensure the DNS system operates effectively:
- ✔ Check that the A record points to the correct IP and has no conflicts
- ✔ Set a reasonable TTL (recommended: 300-600 seconds)
- ✔ Correctly configure MX Record to ensure emails do not go to spam
- ✔ Use DNS from reputable NS such as Cloudflare or Google DNS
- ✔ Monitor DNS uptime via tools like UptimeRobot or DNS Spy
Real example: An SME improves performance after optimizing DNS
An e-commerce business in the country improved page load speed by 22% and increased user time on site by 18% after migrating the entire DNS region from the hosting provider to a specialized DNS system (according to internal data Q3/2023).
The business simultaneously relaunched advertising campaigns after updating SPF/DKIM records, helping improve marketing email inbox rates to 91%.
Illustration of basic DNS configuration
| Record Type | Sample Value | Purpose |
|---|---|---|
| A | 203.113.130.5 | Domain points to server IP |
| MX | mail.yourdomain.com | Handle business emails |
| TXT | “v=spf1 include:spf.mailprovider.com” | Email authentication, anti-spoofing |
Risks when skipping proper DNS configuration
- ⛔ Website is prone to downtime or incorrect redirects if DNS is not updated correctly
- ⛔ Email cannot be sent or is blacklisted if SPF/DKIM is missing
- ⛔ Loss of traffic due to slow load speed causing high bounce rate
⚠️ Cảnh báo: Rất nhiều SME chỉ phát hiện lỗi DNS khi chiến dịch quảng cáo đã hoạt động – khi đã mất ngân sách đáng kể.
Brief takeaway
DNS Configuration Not only the responsibility of IT but should be considered a technical foundation running alongside all plans digital marketing. Investing time to optimize DNS will help businesses operate more stably, communicate more effectively, and develop sustainably in the long term.
Looking back at the journey
Checking domain DNS, A record, and MX record helps ensure the system operates stably. This is a foundational step to build an effective online strategy.
Try checking the records of your website. With just a few simple actions, you will better control domain operations.
Do not overlook key topics like CDN, CNAME, or SPF records. These are important pieces in security and optimizing user experience.
Do you have questions or useful DNS checking tips? Share with DPS.MEDIA in the comments to exchange and learn together!

