<commit_before><!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2016, Joyent, Inc.
-->

# triton-cns

This repository is part of the Joyent Triton project. See the [contribution
guidelines](https://github.com/joyent/triton/blob/master/CONTRIBUTING.md) --
*Triton does not use GitHub PRs* -- and general documentation at the main
[Triton project](https://github.com/joyent/triton) page.

The Triton CNS (Container Naming Service) generates and serves DNS records
based on the VMs and metadata configured in Triton.
<commit_msg>CNS-213 Add documentation links to main CNS readme<commit_after><!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2017, Joyent, Inc.
-->

# triton-cns

This repository is part of the Joyent Triton project. See the [contribution
guidelines](https://github.com/joyent/triton/blob/master/CONTRIBUTING.md) --
*Triton does not use GitHub PRs* -- and general documentation at the main
[Triton project](https://github.com/joyent/triton) page.

The Triton CNS (Container Naming Service) generates and serves DNS records
based on the VMs and metadata configured in Triton.

# Installation

Installation, configuration and control of CNS:

* [Operator Guide](docs/operator-guide.md)
* [Metadata Controls](docs/metadata.md)

# API

See the [REST API](docs/index.md) for communicating with CNS.

# Usage in Triton

This blog post details how to use CNS to connect containers within a Triton DC:

https://docs.joyent.com/public-cloud/network/cns/usage

{'fraction_non_alphanumeric': 0.1004343105320304, 'fraction_numerical': 0.01031487513572204, 'mean_word_length': 3.701530612244898, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1283595', 'n_tokens_mistral': 600, 'n_tokens_neox': 536, 'n_words': 224}