hetzner-devops/dns-configuration.md

1.2 KiB

Konfigurasi DNS untuk Incus Networks

Tanggal: $(date)

DNS Servers yang Dikonfigurasi:

  • Primary: 1.1.1.1 (Cloudflare)
  • Secondary: 8.8.8.8 (Google)

Networks yang Dikonfigurasi:

  1. incusbr0 (Default network)

    • IP Range: 10.94.230.1/24
    • DNS: 1.1.1.1, 8.8.8.8
    • Used by: ubuntu container
  2. services-net

    • IP Range: 10.10.10.1/24
    • DHCP Range: 10.10.10.50-10.10.10.199
    • DNS: 1.1.1.1, 8.8.8.8
    • Used by: traefik-svc container
  3. development-net

    • IP Range: 10.20.20.1/24
    • DNS: 1.1.1.1, 8.8.8.8
  4. production-net

    • IP Range: 10.30.30.1/24
    • DNS: 1.1.1.1, 8.8.8.8
  5. management-net

    • IP Range: 10.40.40.1/24
    • DNS: 1.1.1.1, 8.8.8.8

Cara Mengkonfigurasi:

incus network set <network-name> dns.nameservers "1.1.1.1,8.8.8.8"

Verifikasi:

# Cek konfigurasi network
incus network show <network-name>

# Cek DNS di container
incus exec <container-name> -- resolvectl status

# Test DNS resolution
incus exec <container-name> -- ping -c 2 google.com

Status: COMPLETED

  • Semua managed networks sudah dikonfigurasi
  • Container baru otomatis mendapat DNS yang benar
  • Container existing sudah di-restart dan diverifikasi