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

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.
主站蜘蛛池模板: 镇宁| 广东省| 冷水江市| 龙井市| 自贡市| 澳门| 九台市| 台北市| 微博| 进贤县| 白银市| 鹤岗市| 兰州市| 南京市| 凉山| 寿光市| 蒙自县| 宾阳县| 包头市| 河曲县| 吉安市| 彰化县| 吉安市| 陆良县| 桓仁| 略阳县| 新郑市| 铜山县| 湖口县| 陵川县| 三穗县| 如东县| 许昌市| 十堰市| 满城县| 新丰县| 平定县| 辰溪县| 灌云县| 逊克县| 镇远县|