When you deploy a fenced service, the VMs behind the fence are segregated from the rest of your network and do not automatically get DNS records created. Users outside the fence are still able to connect providing you've allowed access in, but only by IP address.
If you have a requirement for DNS records being created so that users can connect to fenced VMs using a name, follow the process below to create or add the steps below to your completion workflow.
Requirements
In order for the procedure described in this article to function correctly, you must satisfy the following requirements:
- The DNS snap-in must be installed on the Commander® application server.
- The Commander Service Account must be granted permission to create and modify DNS records on the target DNS server. The easiest way to accomplish this is to add the account to the DnsAdmins group.
- The workflow must be applied to individual components rather than services, including vApps.
Creating the Batch Files
Create the following batch files on the Commander application server. Snow recommends you use a single directory for all executables that Commander will call in workflows.
Add_DNS.bat
@echo off dnscmd.exe %1 /RecordAdd %2 %3 A %4
Remove_DNS.bat
@echo off echo Y | dnscmd.exe %1 /RecordDelete %2 %3 A %4
Alternatively, download FencedDNS.zip here and extract it to the scripts directory on your Commander application server.
You can also choose to use the embedded script workflow step to make the workflow more portable.
Workflow Step – Add DNS Record
Create a new completion workflow or add the following step to an existing workflow. When you do so, replace dnsServer and domainName with the correct values for your domain.
Make sure that the Completion Workflow is applied only to those services in your catalog which are fenced.
Workflow Step – Remove DNS Record
Similarly, when decommissioning you can add the following step to remove the DNS records in your change request approval workflow. When you do so, replace DnsServer and domainName with the correct values for your environment.
Related Articles
Cleaning Up Orphaned vRouters for Fenced Networks 7Number of Views Why Records Are Added and Removed From The CreateFolder Table 3Number of Views Dynamically Add and Remove Values from a Combo Box at Run Time 4Number of Views Create local file evidence in Flexera One ITAM or FlexNet Manager Suite 53Number of Views Use a cleanup script to remove VM instance records in Flexera One ServiceNow app 1.7 16Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago