官术网_书友最值得收藏!

How it works...

In the preceding task, we are creating a new type A DNS record app.example.com; under zone example.com and mapping it to multiple IP addresses.

We have used the parameter ttl (time to live), which can be seen as the lifespan or lifetime that a record can stay with the client without initiating a new DNS query for the same DNS record.

In the second task, we are retrieving an existing DNS record using a parameter called state with the input value get and registering the value we obtain in the variable name record. And later, in the third task, once we have that DNS record information in the variable, using the state parameter with the value absent, we delete that DNS record.

We should note that once we register the DNS record into the variable called record, the details of the required DNS record will change to the following:

  • Record as set.record
  • Ttl as set.ttl
  • Type as set.type
  • Value as set.value
We should note here that the preceding tasks will fail if they are executed without modifying the correct value of the zone parameter in the task.
主站蜘蛛池模板: 黔东| 海伦市| 乌鲁木齐市| 都兰县| 彭阳县| 昌平区| 容城县| 桐庐县| 甘南县| 大足县| 横山县| 庆城县| 启东市| 黎川县| 抚宁县| 甘南县| 焉耆| 日土县| 鹿邑县| 和政县| 清远市| 上杭县| 玛纳斯县| 鞍山市| 宁河县| 长春市| 曲沃县| 宜章县| 汪清县| 缙云县| 泸溪县| 兴宁市| 镇远县| 邹城市| 宜兰县| 贺州市| 黄梅县| 阿鲁科尔沁旗| 娄烦县| 孟州市| 孟津县|