Giter Club home page Giter Club logo

Comments (7)

science695 avatar science695 commented on July 24, 2024

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.

eleaner avatar eleaner commented on July 24, 2024

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.

science695 avatar science695 commented on July 24, 2024

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.

cytopia avatar cytopia commented on July 24, 2024

Good catch. I will probably have to create multiple zones then

from docker-bind.

dimkasta avatar dimkasta commented on July 24, 2024

Since this is mostly intended for internal use, adding the reverse zone could be implicit for all cases? Just a thought

from docker-bind.

mboehm21 avatar mboehm21 commented on July 24, 2024

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.

cytopia avatar cytopia commented on July 24, 2024

@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 (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.