Skip to content

Commit

Permalink
Update feature_details.md
Browse files Browse the repository at this point in the history
  • Loading branch information
josephflu authored Sep 6, 2024
1 parent d837170 commit d2b63d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/feature_details.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
## Adding custom DNS Mappings

BridgeCTL now supports adding custom domain mappings to the /etc/hosts file inside the bridge container so that the bridge agent can properly resolve a DNS entry to IP address. To use this feature,
simply populate the dns_mappings dictionary in config/bridge_settings.yml.
simply populate the dns_mappings dictionary by editing the yaml file found at `bridgectl/config/bridge_settings.yml`.

Example:

```
dns_mappings:
mysql.example.lan: 10.1.1.18
postgresql.example.lan: 10.1.1.80
```

This is the same as using the --add_hosts parameter of a docker run command. When the container is started, these values will be added to the /etc/hosts file within the container.
This is the same as using the [--add_hosts](https://www.cloudbees.com/blog/using-the-add-host-flag-for-dns-mapping-within-docker-containers) parameter of a docker run command. When the container is started, these values will be added to the /etc/hosts file within the container.

(This feature was released on Sept 5, 2024)

0 comments on commit d2b63d5

Please sign in to comment.