Use this powerful n8n workflow to perform simultaneous A, CNAME, AAAA, MX, and TXT DNS lookups via Google Public DNS and aggregate the detailed results into a single clean output item.
Download this n8n workflow template and start using it instantly.
System Administrators: Who need to quickly check the configuration of multiple DNS records (A, CNAME, MX, TXT). Developers: Building tools that require validating domain infrastructure setup. n8n Automation Specialists: Looking for robust n8n templates for network and DevOps monitoring tasks. Web Marketers/SEO Experts: Needing aggregated data on domain records for technical audits.
Network diagnostics often require querying various DNS record types (A, MX, CNAME) simultaneously. Manually running these queries is time-consuming. This n8n workflow solves this by automating the entire process. It uses the Google Public DNS API, which offers reliable and free resolution services.
This robust n8n workflow accepts a single domain name and an optional list of record types. If no types are specified, it defaults to checking the six most common types. It then executes individual DNS lookups for each type using an http request n8n node and finally uses custom code logic to combine all success and failure results into a single, structured JSON item. This makes the resulting data easy to consume by downstream applications or other n8n templates.
Form input n8n trigger, capturing the target domain name and an optional list of DNS record types (A, CNAME, AAAA, MX, TXT, NS).If no DNS type in input n8n node checks if the user provided specific types. If empty, the flow defaults to checking all six common record types via the Default to all DNS types n8n node.Types, ensuring one item per record type.For each DNS type n8n node creates a batch loop.DNS Lookup n8n node executes an HTTP GET request to https://dns.google/resolve, dynamically inserting the domain and the current DNS type in the query parameters.Set human readable type in output n8n node ensures that the human-readable record type (A, CNAME, etc.) is attached to the raw API response, which is crucial for the final aggregation step.Aggregate results n8n node takes all items from the batch loop. It uses custom JavaScript code to parse the raw Google API responses, extract the domain, identify records, and structure them into a single list. If a lookup returned no answer, the custom code inserts a 'NO ANSWER' placeholder for clarity in the final n8n workflow output.Form input n8n trigger, which does not require external credentials.Form input n8n trigger node) to input the domain and record types.Default to all DNS types n8n node and the Form input n8n trigger node's options. Form input (n8n trigger): The starting point, acting as the primary n8n trigger. It collects the target Domain (required) and an optional multi-select field for Types (leave empty to use all).
If no DNS type in input (If n8n node): Implements flow control logic. It checks if the input array for 'Types' is empty, directing the flow to use defaults or user-selected values.
Default to all DNS types (Set n8n node): Used when no types are specified. It sets a structured JSON item containing the domain and an array of default types: ["A", "CNAME", "AAAA", "MX", "TXT", "NS"].
Split Out (n8n node): A core n8n node for data processing. It transforms the single input item containing the 'Types' array into multiple output items, one for each DNS type, facilitating parallel processing.
DNS Lookup (HTTP Request n8n node): The primary external communication n8n node. It sends a request to https://dns.google/resolve using the expression ={{ $json.Domain }} for the name and ={{ $json.Types }} for the type.
Set human readable type in output (Code n8n node): A utility n8n node that accesses the data from the upstream For each DNS type split point to ensure the current record type is tagged onto the API response data, which is crucial for proper final organization.
Automate YooKassa payments, order tracking, and transaction logging using this robust n8n workflow. This template simplifies e-commerce operations with no-code Google Sheets integration.

Build an advanced RAG system using this n8n workflow. Scrape Paul Graham essays, embed them with OpenAI, store data in Milvus, and enable conversational Q&A via an n8n chat trigger.

Execute multiple asynchronous sub-workflows in parallel using n8n webhooks and synchronously wait for all tasks to complete using a robust n8n node loop pattern. Ideal for long-running processes.

Use this powerful n8n workflow to automate SEO research. Integrate the Ahrefs API via RapidAPI with Google Gemini 1.5 Flash to extract and format comprehensive keyword insights, search volume, and CPC data into a readable report.

AI & Automation consultant with many years of experience from both devops and business management. A solid combination to really understand where technology can create real business value. My focus is to help businesses in Sweden work smarter and achieve more by applying technology in a useful and responsible way. Feel free to contact me at [email protected] or schedule a short call at https://smultronstudio.com







































