โดเมน
Domain แทน custom hostname ที่ลงทะเบียนกับบัญชี เพื่อใช้ด้านแบรนด์ ความสามารถในการส่งอีเมล และการตั้งค่า TLS
สคีมา
interface Domain {
id: string; // "hst..." - ตัวระบุที่ไม่ซ้ำ
account_id: string; // บัญชีเจ้าของ
hostname: string; // ชื่อโดเมน
client_id: string | null; // ไคลเอนต์ที่เชื่อมโยง
cname_config: { type: "proxy" } | null;
email_config:
| { type: "catch-all" }
| { type: "forward"; forward_to: Record<string, string> }
| null;
txt_verification_token: string; // ค่า DNS TXT record สำหรับยืนยัน
}
คุณสมบัติ
| Property | Type | คำอธิบาย |
|---|---|---|
id | string | KSUID ที่ขึ้นต้นด้วย hst |
account_id | string | บัญชีที่เป็นเจ้าของโดเมน |
hostname | string | ชื่อโดเมน (เช่น mail.example.com) |
client_id | string? | OAuth client ที่เชื่อมโยง |
cname_config | object? | การตั้งค่า CNAME proxy |
email_config | object? | การตั้งค่า route ของอีเมลขาเข้า |
txt_verification_token | string | โทเคนสำหรับยืนยัน DNS TXT |
การยืนยัน DNS
เพิ่ม TXT record เพื่อยืนยันความเป็นเจ้าของ:
| Record Type | Name | Value |
|---|---|---|
| TXT | _am.mail.example.com | {txt_verification_token} |
ขั้นตอนการยืนยัน
ตัวอย่าง
{
"id": "hst_2kHfPZcN9xW4mE8RtY7vB",
"account_id": "acc_1jGePYbM8wV3lD7QsX6uA",
"hostname": "mail.example.com",
"client_id": null,
"cname_config": { "type": "proxy" },
"email_config": null,
"txt_verification_token": "am_2abc123xyz"
}