GithubHelp home page GithubHelp logo

jonpulsifer / go-check-dns Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.2 MB

Google Cloud DNS domain expiration checker thingy

License: The Unlicense

Makefile 12.43% Go 87.57%
google-cloud-dns kubernetes datadog-metrics crontab alpine docker

go-check-dns's Introduction

go-check-dns

This is a little whois thingy I made to track my domain name expirations in datadog.

My domains are hosted with Google Cloud DNS so it expects GOOGLE_APPLICATION_CREDENTIALS to be /path/to/service-account.json to fetch the managed domains.

It also expects DATADOG_URL to be set in ENV

Ref: https://cloud.google.com/compute/docs/access/service-accounts to learn about service accounts

datadog

WARNING ๐Ÿ”ฅ

Cron support will be dropped as soon as kubernetes cronjobs leave alpha on GKE. See kubernetes/enhancements#19 for details

Configuration

Edit crontab with the GCP or script you want to run

Kubernetes

@kelseyhightower has a great tutorial for service accounts: https://github.com/kelseyhightower/gke-service-accounts-tutorial

Usage:

# exported variable
export DATADOG_URL=datadog.kube-public.svc.cluster.local:8125
./go-check-dns -project kubesec

# runtime variable
DATADOG_URL=127.0.0.1:8125 ./go-check-dns -project kubesec

# or use make for 127.0.0.1:8125 and specify a runtime gcp project
PROJECT=kubesec make run

Credits:

Thanks to https://github.com/muchlearning/kubernetes-cron for cronspiration

go-check-dns's People

Contributors

jonpulsifer avatar

Stargazers

 avatar

Watchers

 avatar

go-check-dns's Issues

whois.nic.sucks query errors

Too many queries.

I wasn't running into this limitation during development but deployed on GKE this errors out with too many queries. I adjusted the cron to be weekly so I hope this works? I can't seem to find any reliable documentation around the query quotas so /shrug

http://whois.nic.sucks/

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.