# SecurityTrails

> Read current DNS, WHOIS, and historical DNS intelligence.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/securitytrails

## Actions

### Get DNS history

Read one page of historical records for a selected DNS record type.

**Inputs**

- Hostname (`hostname`, text, required): Fully qualified domain name without a URL scheme, path, or port.
- Record type (`record_type`, text, required): DNS record type. One of: `a`, `aaaa`, `mx`, `ns`, `soa`, `txt`.
- Page (`page`, number): Page to read. Request subsequent pages explicitly. At least 1.

**Outputs**

- `data` (object): The response from SecurityTrails.

**Example output**

```json
{
  "data": {
    "pages": 1,
    "records": [
      {
        "first_seen": "2020-01-01",
        "last_seen": "2026-01-01",
        "values": [
          {
            "ip": "192.0.2.10",
            "ip_count": 1
          }
        ]
      }
    ],
    "type": "a/ipv4"
  }
}
```

### Get domain intelligence

Read current DNS and domain metadata.

**Inputs**

- Hostname (`hostname`, text, required): Fully qualified domain name without a URL scheme, path, or port.

**Outputs**

- `data` (object): The response from SecurityTrails.

**Example output**

```json
{
  "data": {
    "current_dns": {
      "a": {
        "first_seen": "2020-01-01",
        "values": [
          {
            "ip": "192.0.2.10",
            "ip_count": 1
          }
        ]
      }
    },
    "hostname": "example.com"
  }
}
```

### Get domain WHOIS

Read the current WHOIS registration record available for a domain.

**Inputs**

- Hostname (`hostname`, text, required): Fully qualified domain name without a URL scheme, path, or port.

**Outputs**

- `data` (object): The response from SecurityTrails.

**Example output**

```json
{
  "data": {
    "createdDate": "2000-01-01T00:00:00Z",
    "domain": "example.com",
    "expiresDate": "2027-01-01T00:00:00Z",
    "nameServers": [
      "ns1.example.com"
    ],
    "registrarName": "Example Registrar"
  }
}
```
