All Projects → madflojo → cfdns

madflojo / cfdns

Licence: Apache-2.0 License
Command line tool for manipulating DNS of CloudFlare hosted domains

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to cfdns

Bash Utils
A collection of hand-crafted bash scripts for various common tasks.
Stars: ✭ 124 (+520%)
Mutual labels:  dns, cloudflare
Sslify
Rapidly SSLify Your Server!
Stars: ✭ 168 (+740%)
Mutual labels:  dns, cloudflare
Flares
Flares 🔥 is a CloudFlare DNS backup tool
Stars: ✭ 156 (+680%)
Mutual labels:  dns, cloudflare
Cloudflare Dyndns
CloudFlare Dynamic DNS client
Stars: ✭ 69 (+245%)
Mutual labels:  dns, cloudflare
cup
CUP - Cloudflare (DNS) Updater Program
Stars: ✭ 30 (+50%)
Mutual labels:  dns, cloudflare
Cloudflare Ddns
Script for dynamically updating a CloudFlare DNS record. (Deprecated)
Stars: ✭ 112 (+460%)
Mutual labels:  dns, cloudflare
Sites Using Cloudflare
💔 Archived list of domains using Cloudflare DNS at the time of the CloudBleed announcement.
Stars: ✭ 1,914 (+9470%)
Mutual labels:  dns, cloudflare
Lexicon
Manipulate DNS records on various DNS providers in a standardized way.
Stars: ✭ 1,028 (+5040%)
Mutual labels:  dns, cloudflare
HostSpider
Domain information gathering tool
Stars: ✭ 61 (+205%)
Mutual labels:  dns, cloudflare
cloudflare-ddns-updater
Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
Stars: ✭ 434 (+2070%)
Mutual labels:  dns, cloudflare
Cloudflare Cli
CLI utility managing CloudFlare services using CloudFlare API
Stars: ✭ 61 (+205%)
Mutual labels:  dns, cloudflare
flareon
🦊A cloudflare DNS over HTTPs resolver client library.
Stars: ✭ 14 (-30%)
Mutual labels:  dns, cloudflare
Docker Traefik Cloudflare Companion
Automatically Create CNAME records for containers served by Traefik
Stars: ✭ 59 (+195%)
Mutual labels:  dns, cloudflare
Freenom Dns Updater
A tool to update freenom's dns records
Stars: ✭ 117 (+485%)
Mutual labels:  dns, command-line-tool
Piholecloudflared
Raspberry Pi setup with Pi-Hole, CloudflareD, DHCP as the ultimate Ad-blocker
Stars: ✭ 57 (+185%)
Mutual labels:  dns, cloudflare
Ddns
🚩 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
Stars: ✭ 2,582 (+12810%)
Mutual labels:  dns, cloudflare
Godns
A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
Stars: ✭ 784 (+3820%)
Mutual labels:  dns, cloudflare
V3n0m Scanner
Popular Pentesting scanner in Python3.6 for SQLi/XSS/LFI/RFI and other Vulns
Stars: ✭ 847 (+4135%)
Mutual labels:  dns, cloudflare
docker-nginx-proxy-cloudflare-companion
Automatically update CNAME records when Docker container starts via Cloudflare
Stars: ✭ 26 (+30%)
Mutual labels:  dns, cloudflare
DnsTube
Access your computer from anywhere. DnsTube is a Windows .NET dynamic DNS client for Cloudflare.
Stars: ✭ 137 (+585%)
Mutual labels:  dns, cloudflare

cfdns

CLI tool for manipulating DNS of CloudFlare hosted domains. This tool uses CloudFlare's v4 API to add, remove, list, or modify DNS records.

Installation

Install using pip.

$ pip install cfdns

Usage

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Enable verbosity

Actions:
  {add,remove,modify,list}
    add                 Add DNS Records
    remove              Remove DNS records
    modify              Modify existing records
    list                List existing records

Listing records

List DNS records or a set of DNS records by calling the list action.

Syntax:

$ cfdns list <email> <api_key> <domain>

Additional arguments:

  • --name - Match records with the specified name
  • --type - Match records with the specified type A, AAAA, CNAME, or MX
  • --content - Match records with the specified content

Examples:

$ cfdns list [email protected] 12345api
$ cfdns list [email protected] 12345api --name www.example.com
$ cfdns list [email protected] 12345api --name www.example.com --type A
$ cfdns list [email protected] 12345api --name www.example.com --type A --content 10.0.0.1
$ cfdns list [email protected] 12345api --type A
$ cfdns list [email protected] 12345api --type A --content 10.0.0.1
$ cfdns list [email protected] 12345api --content 10.0.0.1

Adding a Record

Add DNS records with the add action.

Syntax:

$ cfdns add <email> <api_key> <domain> <record_name> <record_type> <record_content>

Supported record types are: A, AAAA, CNAME, & MX

Additional Arguments:

  • --ttl - Specify the TTL value (default: 0)
  • --noproxy - Disable CloudFlare's proxying

Examples:

$ cfdns add [email protected] 12345api example.com www.example.com A 10.0.0.1
$ cfdns add [email protected] 12345api example.com www.example.com A 10.0.0.1 --ttl 20
$ cfdns add [email protected] 12345api example.com www.example.com A 10.0.0.1 --noproxy

Removing a Record

Remove one or more DNS records with the remove action.

Syntax:

$ cfdns remove <email> <api_key> <domain> --name <record_name> --content <record_content>

The --name or --content flags can be used together or on their own to limit the number of records to be deleted. At least one flag must be used or no records will be deleted.

  • --name - Match records with a specified name
  • --content - Match records with a specified content

Examples:

$ cfdns remove [email protected] 12345api example.com --name test.example.com --content 10.0.0.1
$ cfdns remove [email protected] 12345api example.com --name test.example.com
$ cfdns remove [email protected] 12345api example.com --content 10.0.0.1

Modify a Record

Modify DNS records using the modify action.

Syntax:

$ cfdns modify <email> <api_key> <domain> <old_record_content> <new_record_type> <new_record_content>

You can add the --name flag to restrict updates to only the named record. By default all records with the matching "old content" will be updated.

Examples:

$ cfdns modify email [email protected] 12345api example.com 10.0.0.1 A 10.0.0.2
$ cfdns modify email [email protected] 12345api example.com 10.0.0.1 A 10.0.0.2 --name www.example.com
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].