GithubHelp home page GithubHelp logo

cloudflare-bulk-dns's People

Contributors

aldian avatar heyalexej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cloudflare-bulk-dns's Issues

Issue with running --delete-all-records

Deleting records from zones listed in domains:
Traceback (most recent call last):
File "cloudflare_dns/bulk_dns.py", line 381, in
cli(sys.argv[1:])
File "cloudflare_dns/bulk_dns.py", line 29, in decorated_function
return f(*args, **kwargs)
File "cloudflare_dns/bulk_dns.py", line 370, in cli
cli_delete_all_records(domains_file_name, cf_lib_wrapper)
File "cloudflare_dns/bulk_dns.py", line 218, in cli_delete_all_records
cf_lib_wrapper=cf_lib_wrapper)
File "cloudflare_dns/bulk_dns.py", line 47, in delete_all_records
zone_info = cf_lib_wrapper.get_zone_info(domain_name)
File "cloudflare_dns/../cloudflare_dns/init.py", line 19, in get_zone_info
zones = self.cf.zones.get(params={'name': domain_name, 'per_page': 1})
File "/home/jtrask/.local/lib/python2.7/site-packages/CloudFlare/cloudflare.py", line 624, in get
params, data)
File "/home/jtrask/.local/lib/python2.7/site-packages/CloudFlare/cloudflare.py", line 82, in call_with_auth
params, data, files)
File "/home/jtrask/.local/lib/python2.7/site-packages/CloudFlare/cloudflare.py", line 473, in _call
raise CloudFlareAPIError(code, message, error_chain)
CloudFlare.exceptions.CloudFlareAPIError: Invalid request headers

Edit Records Fails

While attempting to adjust records on a domain, we continually get a failure. This is even after editing a record we added.

Example:
First we add a record, which works...(certain info replaced for security)
$ cloudflare_dns/bulk_dns.py --add-new-records --type TXT --name {{zone}} --content "+include:_content_here" domain-list.txt
(This does work)

Edit that Record
$ cloudflare_dns/bulk_dns.py --edit-records --type TXT --name {{zone}} --old-content "+include:_content_here" --new-content "include:_new_content_here" domain-list.txt
(This fails)

CSV reports
zone name,status,record id
{{zone}},failed: Existing DNS record not found

Are we using this incorrectly?

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.