DNS Integration via Delegation
Note: anynines recommends using this pattern for production setups.
If this integration pattern should be used, you must be able to configure a DNS delegation in your existing nameserver.
By default, each hostname that should be resolved by the a9s Consul DNS for PCF ends with
.a9svs. You can modify this top level domain in the tile configuration. Each DNS lookup containing a hostname which ends with the configured top level domain should be delegated to the nameserver within the a9s Consul DNS tile.
Before you can configure the DNS delegation you must install the a9s Consul DNS for PCF tile and find out the IP addresses of the nameserver. See the instructions below.
Complete the following steps to download and install a9s Consul for PCF.
Download the product file from the Pivotal Network.
Navigate to the Ops Manager Installation Dashboard and click Import a Product to upload the product file.
Click Add next to the uploaded a9s Consul for PCF tile in the Ops Manager Available Products view to add it to your staging area.
Click the a9s Consul DNS for PCF tile.
Click on Assign AZs and Networks and assign the network and AZs that should be used for this tile.
If you have multiple PCF environments and you want to install the a9s Consul DNS for PCF tile on each environment, click on Consul Settings and ensure that you configure different domains for each PCF environment. This is necessary to be able to distinguish the dnslookups. Otherwise your company’s DNS server would be confused as to which Consul DNS a DNS lookup should be delegated.
Click Upstream Nameservers.
Enter your default nameservers in the General upstream nameservers field. These nameservers resolve DNS queries except those from the following targets:
- Domain-specific nameservers that will be defined in the Domain Specific Nameservers field
- Hosts containing the
.a9svspattern in the hostname, which is reserved for services provided by anynines
Perform the following procedure for each additional domain you want to add:
- Click Add to add a domain-specific nameserver.
- Enter an internal domain or top-level domain in the Domain field.
- Enter a corresponding nameserver in the Nameservers field. The nameserver resolves DNS queries matching the domain. For example, this could be the nameserver of your specific provider or data center. When using vSphere, this could be an internal nameserver that resolves vSphere host names.
Return to the Installation Dashboard and click Apply changes to deploy the service.
Once the tile is successfully installed it is required that you find out the IP addresses of the nameservers within the a9s Consul DNS for PCF tile in order to setup the DNS delegation in your company’s nameservers.
For this reason, click on the a9s Consul DNS tile and then on Status. It takes a few seconds until the required information are displayed.
Remember the three IP addresses of the dnsmasq servers.
Talk to the administrator of your company’s nameservers to setup a delegation of a9s Consul DNS hostnames. The hostnames of these queries end with
a9svs by default and must be delegated to the IP addresses of the dnsmasq server within the a9s Consul DNS tile.
Note: The domain used by the a9s Consul DSN tile (a9svs) can be changed in the Consul DNS tile settings.