# TS Declarations for DNS

**URL:** <https://community.f5.com/t/ts-declarations-for-dns/75406>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [November 13, 2024, 9:09pm UTC](https://community.f5.com/t/ts-declarations-for-dns/75406 "2024-11-13T21:09:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_T](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/bryan_t/32/4053_2.png) [@Bryan\_T](https://community.f5.com/u/Bryan_T)\
**Post date:** [November 13, 2024, 9:09pm UTC](https://community.f5.com/t/ts-declarations-for-dns/75406/1 "2024-11-13T21:09:34Z")

</div>

Does anyone have a list of TS declarations that just show objects in the DNS module? Any examples that show wide-ip’s aPools, cnamePools, etc would be helpful.

Thank you

---

<div class="post-metadata">

**Author:** ![Jmtaylor](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/jmtaylor/32/22145_2.png) [@Jmtaylor](https://community.f5.com/u/Jmtaylor)\
**Post date:** [November 21, 2024, 6:58pm UTC](https://community.f5.com/t/ts-declarations-for-dns/75406/2 "2024-11-21T18:58:56Z")

</div>

@Bryan_T \_ Not&nbsp;sure if you have seen this, it may assist in&nbsp; &nbsp;your question.

[BIG-IP DNS (GTM) and GSLB](https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/3.32/declarations/gslb.html)

---

<div class="post-metadata">

**Author:** ![LiefZimmerman](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/liefzimmerman/32/3355_2.png) [@LiefZimmerman](https://community.f5.com/u/LiefZimmerman)\
**Post date:** [December 19, 2024, 1:07am UTC](https://community.f5.com/t/ts-declarations-for-dns/75406/3 "2024-12-19T01:07:57Z")

</div>

@Bryan_T &nbsp; - if that post helped please mark as solution. If not…what are we missing?

Cheers!

---

<div class="post-metadata">

**Author:** ![HarunTuna](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/haruntuna/32/17411_2.png) [@HarunTuna](https://community.f5.com/u/HarunTuna)\
**Post date:** [December 19, 2024, 2:43pm UTC](https://community.f5.com/t/ts-declarations-for-dns/75406/4 "2024-12-19T14:43:07Z")

</div>

Hi,

**List Wide IPs**

--\> tmsh list ltm dns wideip all-properties

**List A Pools**

**--\> tmsh list ltm dns pool a all-properties**

**List CNAME Pools**

tmsh list ltm dns pool cname all-properties

**List DNS Configurations**

tmsh list ltm dns all-properties

HT

---

<div class="post-metadata">

**Author:** ![F5\_Design\_Engineer](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/f5_design_engineer/32/2479_2.png) [@F5\_Design\_Engineer](https://community.f5.com/u/F5_Design_Engineer)\
**Post date:** [December 20, 2024, 4:50am UTC](https://community.f5.com/t/ts-declarations-for-dns/75406/5 "2024-12-20T04:50:16Z")

</div>

Hi Bryan\_T,

In F5 **Telemetry Streaming (TS)**, a DNS declaration would typically be a JSON structure defining the configuration of a DNS zone on your BIG-IP device, including details like record types (A, CNAME, MX), hostnames, IP addresses, and potentially security settings, allowing you to declaratively manage your DNS infrastructure through the F5 API and monitor changes in&nbsp;DNS records via telemetry streams.

**Key points about F5 TS DNS declarations:**  
**Declarative nature:**  
You specify the desired state of your DNS configuration in a JSON document, and the F5 system automatically applies the changes needed to achieve that state.&nbsp;  
**Data structure:**  
The declaration would likely include properties like:  
**Zone name** : The domain name for which you’re defining DNS records.&nbsp;  
**Record type:** A (Address), CNAME (Canonical Name), MX (Mail Exchanger), TXT (Text), etc.&nbsp;  
**Host name:** The hostname associated with the record.&nbsp;  
**IP address/target:** The corresponding IP address or another hostname for the record.&nbsp;  
**TTL (Time To Live)**: How long the record should be cached by resolvers.

**Security features:**  
Depending on the F5 configuration, you might include options for DNSSEC (Domain Name System Security Extensions) to enhance security by validating DNS records.

**Example F5 TS DNS declaration (simplified):**  
Code

{

“class”: “DNS”,

“my\_zone”: {

“class”: “DNS\_Zone”,

“name”: “[example.com](http://example.com)”,

“records”: [

{

“name”: “www”,

“type”: “A”,

“rdata”: “10.0.0.1”,

“ttl”: 3600

},

{

“name”: “mail”,

“type”: “CNAME”,

“rdata”: “[mail.example.com](http://mail.example.com)”,

“ttl”: 3600

}

]

}

}  
**How to use a DNS declaration:**  
**Send to F5 API:**  
You would POST this JSON declaration to the F5 BIG-IP Telemetry Streaming API endpoint to configure the DNS zone with the specified records.  
**Monitoring changes:**  
By using the F5 TS capabilities, you can monitor changes in the DNS configuration and receive notifications when updates are made to your DNS records.

Important considerations:  
**F5 version compatibility:**  
Ensure your declaration syntax aligns with the version of F5 BIG-IP you are using.  
**Access control:**  
You need appropriate permissions to manage DNS configurations on your F5 device.

**Detailed documentation:**  
Refer to the F5 documentation for specific details on supported DNS record types, configuration options, and the complete syntax for your F5 version.

## Using BIG-IP DNS features in a declaration

> **[BIG-IP DNS (GTM) and GSLB](https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/3.32/declarations/gslb.html)**

##### [F5 Public Cloud Solutions](https://clouddocs.f5.com/training/community/public-cloud/html/index.html)&nbsp;\>&nbsp;[Deploying F5 Solutions to GCP with Terraform and The F5 Automation Toolchain](https://clouddocs.f5.com/training/community/public-cloud/html/class14/class14.html)&nbsp;\>&nbsp;[F5 Telemetry Streaming Initial Setup](https://clouddocs.f5.com/training/community/public-cloud/html/class14/module05/module5.html)[Source](https://clouddocs.f5.com/training/community/public-cloud/html/_sources/class14/module05/lab1.rst.txt)&nbsp;|&nbsp;[Edit on](https://github.com/f5devcentral/f5-agility-labs-public-cloud)&nbsp;

PDF

# F5 Telemetry Streaming Initial Setup[¶](https://clouddocs.f5.com/training/community/public-cloud/html/class14/module05/lab1.html#f5-telemetry-streaming-initial-setup)

> **[F5 Telemetry Streaming Initial Setup](https://clouddocs.f5.com/training/community/public-cloud/html/class14/module05/lab1.html)**

[https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/#:~:text=Introduction%C2%B6,TS’s%20declarative%20REST%20API%20endpoint.&text=If%20playback%20doesn’t%20begin%20shortly%2C%20try%20restarting%20your%20device](https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/#:~:text=Introduction%C2%B6,TS's%20declarative%20REST%20API%20endpoint.&text=If%20playback%20doesn't%20begin%20shortly%2C%20try%20restarting%20your%20device).

> **[Example Declarations](https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/declarations.html)**

# F5 Telemetry Streaming Initial Setup[¶](https://clouddocs.f5.com/training/community/public-cloud/html/class14/module05/lab1.html#f5-telemetry-streaming-initial-setup)

Telemetry Streaming was created to offload common metrics from the BIG-IP onto external monitoring/graphing utilities, including the major cloud-native monitoring programs. In this lab we will be sending the some basic metrics from the BIG-IP to Cloud Monitoring - part of GCP.

The Telemetry Streaming package has been installed as part of the base image. You can verify it is installed by going to iApps =\> Package Management LX where you can note the version.

 ![image_338667.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/b/3/b33b233a4d3b2566e3b80f19353bdfa657bdd086.png)

Make sure you are signed into BIG-IP 1, click on TS the bottom white bar.

 ![image_338667.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/9/995e0f57b66f3efb3c4932e4c0ae01adf6215b6d.jpeg)

“message:Success” response signals that the Telemetry Streaming Extension (TS) is ready on Big-IP1.

From files tab click on Lab4.2-TS under the drop down menu, select “ts.json” request. Right Click “Post as TS Declaration”.

“message:Success” response signals that the Telemetry Streaming Extension (TS) declaration successfully completed processing on Big-IP1.

Switch the connection to BIG-IP 2.

From files tab click on Lab4.2-TS under the drop down menu, select “ts.json” request. Right Click “Post as TS Declaration”.

“message:Success” response signals that the Telemetry Streaming Extension (TS) declaration successfully completed processing on Big-IP1.

This lab has been split into two parts to ensure that the systems begin to send data to the Google Cloud Monitoring Solution which you can query and visualize.

HTH

**F5 Design Engineer**

_(Please rate and mark as solution if this is helpful.)_  
_(F5 DevCentral is a free help community, but it requires time and dedication to help others, a thanks or rating would not hurt or cost anything)_
