Skip to content

MrMaksimize/DNS-Service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Service

Code for America’s DNS host records change frequently, with subdomains added regularly for various projects. This is a master copy of our domain name collection. We’d like to keep it in Git now to maintain an ongoing historical record of changes and older versions to allow for easier edit access and rollback.

If you need to add a new DNS record to codeforamerica.org, edit the file host-records.csv and submit a pull request via Github. Records should be live within a few minutes depending on speed of Travis and Heroku. Check with whatsmydns.net.

Code

Build status

DNS-Service is a Python + Flask app. Required packages can be found in requirements.txt, and process descriptions can be found in Procfile for Procfile-based deployment.

Validity of host records and access to our DNS service is checked at app start time; subsequent web requests are useful only for diagnostics.

Two environment variables are required for use:

  • DNS_API_BASE - Base URL for DNS service API.
  • DNS_API_KEY - Secret key for DNS service API.

Tests can be run with:

python -m cfa_dns.test

About

DNS records for codeforamerica.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%