# DNS Lookup Tool Node

> Performs a DNS lookup using Cloudflare's DoH API

**URL:** https://caywork.com/learn/docs/node/dns_lookup_node

## Content

The DNS Lookup Node is responsible for performs a dns lookup using cloudflare's doh api. This node allows the agent to provide informative data directly sourced from DNS Lookup.

### Input Parameters
- **domain**: The domain to lookup.
- **record_type**: The DNS record type (e.g., 'A', 'AAAA', 'MX', 'TXT'). Defaults to 'A'.

### Output
dict: A dictionary containing the DNS records.