diff --git a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml
index 21022b734d..ee045de470 100644
--- a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml
@@ -76,7 +76,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}
@@ -796,7 +796,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}
@@ -1530,7 +1530,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}
@@ -2256,7 +2256,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}
@@ -2981,7 +2981,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}
@@ -3706,7 +3706,7 @@
- - ARecord
+
{if $grandstream_dns_mode == '0'}- ARecord
{/if}
{if $grandstream_dns_mode == '1'}- SRV
{/if}