# DNS Configuration for Proxmox Instances

## Quick Start

### Using Automated Script

```bash
export CLOUDFLARE_ZONE_ID="your-zone-id"
export CLOUDFLARE_API_TOKEN="your-api-token"
./scripts/setup-dns-records.sh
```

### Using Terraform

```bash
cd cloudflare/terraform
terraform init
terraform plan
terraform apply
```

### Using Local /etc/hosts (Testing)

```bash
sudo cat scripts/hosts-entries.txt >> /etc/hosts
```

## DNS Records

### Required Records

**Instance 1 (ML110-01):**
- `ml110-01.sankofa.nexus` → 192.168.11.10
- `ml110-01-api.sankofa.nexus` → ml110-01.sankofa.nexus
- `ml110-01-metrics.sankofa.nexus` → ml110-01.sankofa.nexus

**Instance 2 (R630-01):**
- `r630-01.sankofa.nexus` → 192.168.11.11
- `r630-01-api.sankofa.nexus` → r630-01.sankofa.nexus
- `r630-01-metrics.sankofa.nexus` → r630-01.sankofa.nexus

## Verification

```bash
# Test resolution
dig ml110-01.sankofa.nexus +short
dig r630-01.sankofa.nexus +short

# Test connectivity
curl -k https://ml110-01.sankofa.nexus:8006/api2/json/version
curl -k https://r630-01.sankofa.nexus:8006/api2/json/version
```

For detailed documentation, see [DNS Configuration Guide](../../docs/proxmox/DNS_CONFIGURATION.md).

