هذا

records.set()

domain.records.set({ type, name, content, priority?, ttl?, replace? }) → Promise<Record>

يكتب a سجل الإيطالية إستبدل مع نفس نوع و الاسم أو إنشئ الإيطالية الـ control this recond this this.

PUTreplace or createNS refused
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

await domain.records.set({ type: "CNAME", name: "docs", content: "example.pages.dev" });
await domain.records.set({ type: "MX", name: "@", content: "mx.example.net", priority: 10 });
domain.records.set({"type": "CNAME", "name": "docs", "content": "example.pages.dev"})
domain.records.set({"type": "MX", "name": "@", "content": "mx.example.net", "priority": 10})
typestringمطلوب

A, AAAA, CNAME, TXT, MX, SRV, CAA. NS مرفوض

namestringمطلوب

نسبي إلى المنطقة. @ من أجل قمة الألفية

contentstringمطلوب

القيمة.

prioritynumber

MX and SRV.

ttlnumber

ثانية. تلقائية بالافتراض.

replaceboolean

استبدل كل سجل من هذا النوع والاسم، وليس فقط المطابق.

بعض الأنواع تكرر بصورة مشروعة

MX, TXT and CAA can coexist on one name

لذا فقط واحد مع المحتوى نفسه يتم استبداله -- وإلا فإن كتابة خادم بريد ثانٍ سوف يحذف الأول. مر استبدال: صحيح عندما تعني حقاً أن هذا الاسم لديه هذا الآن بالضبط o.

رفض تقديم وظيفة واحدة من فئة الخدمات الجديدة

A سجل a الاسم هو a a a ground keyween control يبدو. الـ نوع غير مقبول مع ليس خيار إلى إقحام الإيطالية.

سجل لا يستطيع مغادرة المنطقة

الأسماء نسبية، لذا لا توجد طريقة للكتابة في منطقة ليست هذه.

لا يُخَرْخ من سِرْر لا يُخْرِج اسمًا

For a hostname that must actually answer, serve() writes the record and registers the name. A record alone gives an address that resolves and refuses.