Comments (6)
@robertmiles3 can you add the docker run command, so I can see if this is left or right side of the equal sign for EXTRA_HOSTS
from docker-bind.
It's like this...
EXTRA_HOSTS=sandbox.example.com=internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com
But, looking at your code for this, it may not work anyway. It looks like you just resolve the cname to an IP and add that IP to the list. However, AWS ALB's rotate IPs randomly so it likely won't work.
from docker-bind.
What does host internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com
output (if you're inside AWS)?
from docker-bind.
It outputs an IP address, but 5 minutes later it could be a different IP address due to high-availability stuff. Per AWS, "Our support for high availability and multiple availability zones, as well as our ability to dynamically scale your load balancing capacity leverages our ability to change the set of IP addresses behind the DNS name from time to time."
from docker-bind.
OK I figured. The above error is due to wrong regex checking the CNAME.
The changing IP addresses is a different issue.
from docker-bind.
Regex fix PR is open. Keep in mind that you need to quote the values for EXTRA_HOSTS like so:
EXTRA_HOSTS='sandbox.example.com=internal-foo-bar-baz-1234567890.us-east-1.elb.amazonaws.com'
from docker-bind.
Related Issues (15)
- xargs: unmatched single quote HOT 2
- problem with reverse resolution and multiple EXTRA_HOSTS HOT 7
- Cannot route all subdomains to an IP except the domain itself HOT 1
- query failed (REFUSED) with version (tag) 0.16 HOT 4
- More flexible CNAME/IP support for WILDCARD_DNS and EXTRA_HOSTS HOT 1
- Option for "forward only" ? HOT 1
- Certbot with Bind HOT 5
- container keeps crashing/restarting HOT 4
- Building zone files fails for the debian image in docker compose HOT 1
- Completely disable recursion HOT 1
- [Bug]: timeout when run in no internet network enviroment
- [Feature]: Statistics Channel enable
- [Question]: How do i use host.docker.internal while this service is active HOT 2
- DNSSEC problems with DNS forwarders HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-bind.