Giter VIP home page Giter VIP logo

dns's Introduction

dns

Build Status

DNS zones for the Open Computing Facility

DNS source of truth

While this repo holds the live DNS config which is served by our DNS server, the authoritative source for DNS is LDAP. Hosts can have the following LDAP attributes:

  • dnsA for A and AAAA records.

    Whether the host will automatically get IPv6 records depends on the type of host. For an up-to-date listing, run:

    $ python3 -c 'import ocflib.infra.hosts; print(ocflib.infra.hosts.HOST_TYPES_WITH_IPV6)'
  • dnsCname for CNAME records.

In most cases, you should not use dnsA. For example, the mail server has:

$ ldapsearch -x cn=anthrax dnsCname
# anthrax, Hosts, OCF.Berkeley.EDU
dn: cn=anthrax,ou=Hosts,dc=OCF,dc=Berkeley,dc=EDU
dnsCname: mail
dnsCname: smtp

There are some rare cases where it's necessary to use A records instead, usually mandated by some RFC. For example, the "apex" (root) of a domain cannot be a CNAME (because of the SOA record), so you must use dnsA. Another example is when one hostname needs multiple IPs (e.g. mesos.ocf.berkeley.edu).

Making changes

When updating DNS, apply your changes to LDAP, and then run make. It will rebuild the primary DNS (db.ocf) and reverse DNS, including pulling host data from LDAP and bumping the serial number.

Sanity-check the diff before commiting to make sure the changes in LDAP make sense. If not, don't push!

Some zones under etc/zones are not automatically generated (e.g. asuc.org). These have to be manually edited. Be sure to bump the serial.

The Makefile targets you're intended to run are:

  • make: update the DNS
  • make test: run pre-commit hooks
  • make install-hooks: install pre-commit hooks so that they run automatically

Hostname suggestions

A list of proposed hostnames, if you can't think of one, is located at ~staff/server_name_ideas.

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.