Comments (7)
Why are you including the dns name twice? It is intended to be a pair hostname=ipaddress,...
EXTRA_HOSTS=mywebserver.loc=172.16.238.1
https://devilbox.readthedocs.io/en/latest/advanced/add-custom-cname-records.html?highlight=extra%20hosts
and, to match that to your case:
-e EXTRA_HOSTS='hetzner1=10.8.0.5,hetzner2=10.8.0.9'
from docker-bind.
Please see section 5. Adding reverse DNS:
https://github.com/cytopia/docker-bind#extra_hosts
The following extra host 'my.host' is added and will always point to whatever IP example.org resolves to. As well as adding reverse DNS from 192.168.0.1 to resolve to tld EXTRA_HOSTS='tld=192.168.0.1=tld'
my requirement is to resolve hetzner1 -> 10.8.0.5 as well as 10.8.0.5 -> hetzner1
and it works as long as I have only one entry
from docker-bind.
Oh, I'm sorry. It looks like the developer added a feature I didn't know about.
I can confirm this bug. I'm going to send some additional information to the developer to help speed this up.
@cytopia: eleaner has found a bug with multiple extra_hosts with reverse lookup.
If you do:
EXTRA_HOSTS=test.loc=172.16.238.42=test.loc,test2.loc=172.16.238.43=test2.loc
(as long as both ip addresses are in the same subnet)
The configuration it creates returns an error:
/etc/bind/devilbox-extra_hosts.test2.loc.conf:7: zone '238.16.172.in-addr.arpa': already exists previous definition: /etc/bind/devilbox-extra_hosts.test.loc:7
This is caused by always adding in a zone for the subnet for every extra host with reverse:
https://github.com/cytopia/docker-bind/blob/master/data/docker-entrypoint.sh#L248
I'm not sure what you were solving by adding that subnet zone, but you might want to track witch subnets you've added a zone and not add duplicate zones.
from docker-bind.
Good catch. I will probably have to create multiple zones then
from docker-bind.
Since this is mostly intended for internal use, adding the reverse zone could be implicit for all cases? Just a thought
from docker-bind.
Is there already a way to get the reverse-lookup working again?
Is there also a way to round-robin load-balance with this dns-server?
Thanks for creating this really nice image, by the way.
from docker-bind.
@eleaner @science695 @dimkasta @mboehm21
thanks for the issue. I have made a major rewrite which addresses the fix here: #36
from docker-bind.
Related Issues (16)
- AWS ALB CNAME support HOT 6
- xargs: unmatched single quote HOT 2
- 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
- [Feature]: custom zone files
- 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.