-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |