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

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.
主站蜘蛛池模板: 孝义市| 漳州市| 竹溪县| 宜君县| 靖安县| 石景山区| 成都市| 威海市| 武隆县| 雷波县| 灵山县| 赤峰市| 杭锦后旗| 兴山县| 黑龙江省| 灯塔市| 崇明县| 平舆县| 德庆县| 佛坪县| 钟山县| 富源县| 神农架林区| 抚远县| 清水河县| 洞口县| 东港市| 车险| 思茅市| 安义县| 天峨县| 华池县| 民勤县| 松潘县| 鹿泉市| 大悟县| 湖北省| 沾益县| 都匀市| 和顺县| 同心县|