import Link from "next/link"
import { Suspense } from "react"
import { env } from "@/lib/env"
import { listRecords } from "@/lib/records"
import { applyConfigAction, deleteRecordAction, toggleRecordAction } from "./actions"
import { ApplyButton } from "./_components/ApplyButton"
import { DeleteButton } from "./_components/DeleteButton"
export const metadata = { title: "域名记录" }
const cardClass = "rounded-lg border border-black/10 p-4 dark:border-white/15"
export default function RecordsPage() {
return (
记录保存在 SQLite 中,修改后需要「应用并重启」才会写入 dnsmasq 配置。
配置文件:域名记录
生效
{env.confPath} · 目标容器:{env.containerName}
还没有任何记录,点右上角「新增记录」开始。
| 域名 | 类型 | 目标值 | 状态 | 备注 | 操作 |
|---|---|---|---|---|---|
| {record.domain} | {record.type} | {record.value} | {record.enabled ? "已启用" : "已禁用"} | {record.comment || "—"} |
编辑
|