DNS Lookup
Look up A, AAAA, CNAME, MX, NS, TXT, and SOA DNS records of a host.
1. Introduction
DNS Lookup is a tool that retrieves detailed Domain Name System (DNS) records for any domain or hostname. DNS records form the foundation of how the internet functions by linking domain names to IP addresses, mail servers, name servers, and other essential services. It enables you to quickly check A, AAAA, CNAME, MX, NS, TXT, SOA, and CAA records in a clear, structured, and easy-to-read format.
Whether you're a website owner troubleshooting domain configuration issues, a system administrator verifying mail server settings, or a developer debugging DNS propagation problems, this tool provides instant visibility into a domain’s DNS setup. Simply enter a domain name or URL, and the tool automatically extracts the hostname and queries multiple DNS record types.
It also supports internationalized domain names (IDNs), ensuring accurate results for domains that contain non-ASCII characters. The output is organized into categorized tables, making it easy for both beginners and professionals to understand the results.
2. How It Works
The DNS Lookup Tool performs real-time DNS queries against the specified hostname and retrieves multiple record types in a single request cycle. When a user submits a domain or URL, the system first sanitizes the input to remove unwanted characters and ensure safe processing.
Input Parameter
- Host – A required field. This can be:
- A domain name (example.com)
- A subdomain (mail.example.com)
- A full URL (https://example.com/page)
If a full URL is entered, the system automatically extracts only the hostname portion. International domain names are converted to ASCII (Punycode) format for accurate DNS querying and then converted back to a human-readable format in the results.
Validation Rules
- The host field cannot be empty.
- Input is sanitized to prevent malformed entries.
- URL inputs are parsed to extract valid hostnames.
- CSRF token validation ensures secure form submission.
DNS Record Types Retrieved
The tool queries the following DNS record types:
- A – IPv4 address mapping
- AAAA – IPv6 address mapping
- CNAME – Canonical name alias
- MX – Mail exchange servers with priority
- NS – Authoritative name servers
- TXT – Text records (SPF, DKIM, verification)
- SOA – Start of Authority record
- CAA – Certificate authority authorization
Output Structure
Results are grouped by record type. Each section is displayed in a structured table including fields such as:
- Record type
- Host
- TTL (Time To Live)
- Target, IP address, priority, or other type-specific values
If no DNS records are found for the provided host, the tool returns an error message indicating that no results were detected.
Limitations
- Results depend on public DNS availability.
- Recently updated DNS records may not reflect immediately due to TTL caching.
- The tool does not modify or manage DNS records—it is read-only.
3. How to Use This Tool
- Enter a domain name, subdomain, or full URL into the Host field.
- Click the Submit button.
- Wait a few seconds while the system queries DNS records.
- Review the categorized tables for each available record type.
- Use the TTL and record values to diagnose or verify your DNS configuration.
4. Practical Examples
Example 1: Checking Website IP Address
Input: example.com
Output (A Record):
- Type: A
- Host: example.com
- TTL: 3600
- IP: 93.184.216.34
Use case: Confirming that your domain points to the correct hosting server after migration.
Example 2: Verifying Email Configuration
Input: example.com
Output (MX Record):
- Type: MX
- Host: example.com
- Priority: 10
- Target: mail.example.com
Use case: Ensuring email routing is properly configured before launching business email services.
5. Developer Use Cases
- Automated DNS Monitoring
Integrate periodic DNS checks into monitoring systems to detect configuration changes or unauthorized record modifications.
- Deployment Validation
Automatically verify A and AAAA records after deploying infrastructure changes to ensure traffic routes correctly.
- Email System Verification
Programmatically validate MX and TXT records to confirm SPF, DKIM, and DMARC configurations.
- SSL Certificate Security Checks
Query CAA records to verify which certificate authorities are authorized to issue certificates for a domain.
Example PHP Integration
$records = dns_get_record("example.com", DNS_A);
foreach($records as $record) {
echo $record['ip'];
}
Example JavaScript (Node.js)
const dns = require('dns');
dns.resolveMx('example.com', (err, addresses) => {
if (!err) console.log(addresses);
});
For secure implementation, always validate and sanitize host input to prevent injection issues and ensure reliable DNS resolution.
6. FAQ
What is a DNS lookup?
A DNS lookup retrieves DNS records associated with a domain name, such as IP addresses or mail servers.
Why would I need to check DNS records?
You may need to troubleshoot website downtime, verify email configuration, or confirm domain migrations.
What is the difference between A and AAAA records?
A records map domains to IPv4 addresses, while AAAA records map to IPv6 addresses.
How long does DNS propagation take?
Propagation depends on TTL settings and can take anywhere from a few minutes to 48 hours.
Can I check subdomains?
Yes. Enter the full subdomain (e.g., mail.example.com) in the host field.
Does this tool support international domain names?
Yes. Internationalized domains are automatically converted and displayed correctly.
Similar tools
Take an IP and find the domain or host associated with it.
Get approximate details of an IP address.
Get all possible details about an SSL certificate.
Popular tools
Reverse the letters in a sentence or paragraph.
Get text size in Bytes (B), Kilobytes (KB), or Megabytes (MB).
Convert a number into its written, spelled-out form.
Count the number of characters and words in a given text.
Flip text upside down with ease.
Convert normal text to cursive font style.