# records.import()

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/domain/records/import/
Language: ar

`domain.records.import(zoneFile?) → Promise<{ added, parsed, skipped }>`

فَهُوَ يَسْتَخْدِمُ مَا يُحَافِظُ عَلَى ٱلْأَسْجَالِ ٱلَّتِي يَجِبُ أَنْ يُحَافِظَ عَلَى ٱلْمَسِيحِيِّينَ .

Status: the takeover · skips opaque records · a zone file is the reliable path

```javascript
await domain.records.import();              // what the search found
await domain.records.import(zoneFileText);  // a zone file from the old host
```

## ملف المنطقة هو الطريق الموثوق به {#zonefile}

> **فقط فقط يحمل الحياة الحقيقية والسجلات التي لا يمكن أن يلاحظها شيء**
>
> ملاحظة أيّ أجوبة، لا يمكن أن يعدّد. ملفّ منطقة يحتوي على كلّ شيء، بقيمه الحقيقية، ومعظم المضيفين يمكنهم تصدير واحد. بدونه أنت تنسخ ما كان مرئيا.

## ما هو ما هو الذي يُرْب، ولماذا {#skipped}

| مرّر | السبب |
| --- | --- |
| عنوان | إنه لوكيل وليس لأصله. نسخه يشير إلى المجال في خدمة لم تسمع به من قبل. |
| `NS` وسجلات سلطة المنطقة | سيرجعون إلى المضيف الذي سيترك |

الـ بوصة [(بالأقص (بالنسب المئوية)](/ar/sdk/ref/domain/migration) -للانتهاء باليد أو بملف المنطقة

## القيمة المُعادة {#returns}

```javascript
{ added: 15, parsed: 23, skipped: [{ type, name, reason }] }
```

re re  re `skipped`هو قائمة ما لا يزال مفقوداً، وكل مدخل يقول لماذا.

## إنشاء السجلات، الواحد تلو الآخر {#records-created}

كل واحد يمر عبر المسار العادي ، والنتيجة يتم الإبلاغ عنها في السجل. أي سجل لم يهبط يُسمّى بدلا من أن يُفقد في نتيجة دفعة - قم باجراء الاستيراد مرة أخرى، أو اكتب السجل المفقود.

## تحقق قبل نقل {#verify}

```javascript
await domain.records.import();
const plan = await domain.migration();
if (plan.safeToSwitch) { /* now the registrar can be pointed here */ }
```

- [migration()](/ar/sdk/ref/domain/migration): هل التحول آمن بعد؟
- [records.list()](/ar/sdk/ref/domain/records/list): التحقق من النتيجة.

```python
domain.records.import_zone()                 # what the search found
domain.records.import_zone(zone_file_text)   # a zone file from the old host
```

```python
{"added": 15, "parsed": 23, "skipped": [{"type": ..., "name": ..., "reason": ...}]}
```

```python
domain.records.import_zone()
plan = domain.migration()
if plan["safeToSwitch"]:
    pass  # now the registrar can be pointed here
```
