GithubHelp home page GithubHelp logo

Comments (5)

yzguy avatar yzguy commented on June 12, 2024
>>> zone_name = 'xywz.com.'
>>> file_extension = 'zone'
>>> print(f'{zone_name[:-1]}{file_extension}')
xywz.comzone

Reference

You need .zone for your file_extension argument to the ZoneFileSource, looking at the README it shows zone which can be confusing as it makes it seem like the . is implicit. You'll also want to define something like $TTL 3600 with your $ORIGIN to define a default TTL.

I will make a PR to correct that to make it more clear as well expose a warning that says the file isn't found as right now the exception is captured and continues silently Reference

from octodns-bind.

rnalrd avatar rnalrd commented on June 12, 2024

Great, I have renamed "xywz.com.zone" into "xywz.comzone" and it works! Thanks!

from octodns-bind.

yzguy avatar yzguy commented on June 12, 2024

@rnalrd you can also set it to .zone in the file_extension attribute of the provider, then you can keep the xywz.com.zone, which is more correct. You could also not have file_extension and it'll just look for a file named xywz.com.

from octodns-bind.

rnalrd avatar rnalrd commented on June 12, 2024

from octodns-bind.

yzguy avatar yzguy commented on June 12, 2024

@rnalrd The changes related to this is in v0.0.3 release of the provider. The README was updated and OctoDNS will error when it cannot find a zone file on disk, showing the path/name it expects

from octodns-bind.

Related Issues (12)

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.