Difference between revisions of "Service/Nameservers"
< Service
Jump to navigation
Jump to search
Line 57: | Line 57: | ||
== Edit zone data == | == Edit zone data == | ||
− | + | Guidelines for editing zones: | |
* Please keep the zone files tidy, by following indentation style | * Please keep the zone files tidy, by following indentation style | ||
Line 64: | Line 64: | ||
* Remember to keep reverse zones always up to date | * Remember to keep reverse zones always up to date | ||
+ | |||
+ | * '''Bump the serials after each update!''' | ||
== Push changes back to master nameserver == | == Push changes back to master nameserver == | ||
Line 74: | Line 76: | ||
git push | git push | ||
− | ssh root@lightwave.sugarlabs.org "cd /var/lib/bind/etc/bind && git merge remotes/USERNAME" | + | ssh root@lightwave.sugarlabs.org "cd /var/lib/bind/etc/bind && git merge remotes/USERNAME/master" |
+ | |||
+ | * Now reload the nameserver configuration: | ||
+ | |||
+ | ssh root@lightwave.sugarlabs.org /etc/init.d/named reload |
Revision as of 10:52, 18 February 2010
Our registered nameservers are:
hostname | aka | location | IPv4 | IPv6 |
---|---|---|---|---|
ns1.sugarlabs.org | lightwave | FSF, Boston, USA | 140.186.70.102 | 2002:8cba:4666::1 |
ns2.sugarlabs.net | sunjammer | FSF, Boston | 140.186.70.53 | 2002:8cba:4635::1 |
ns1.codewiz.org | trinity | Develer, Firenze, Italy | 83.149.158.210 | 2002:5395:9ed2::1 |
ns2.auth.osuosl.org | - | OSU-OSL, Seattle, USA | 140.211.166.141 | - |
Note that ns2.auth.osuosl.org is not under our control and does not serve all our domains.
Hostmasters
- Bernie Innocenti <bernie@codewiz.org>
- (others to be added when this documentation is finished)
Editing zone data
We use distributed version control and admin scripts to arbitrate edits to the zone files and nameserver configurations. DO NOT EDIT THESE FILES LOCALLY without first confirming with all hostmasters.
Checkout nameserver config
To simplify merging, each hostmaster pushes to a separate branch:
git clone root@lightwave.sugarlabs.org:/var/lib/bind/etc/bind ns git config --add remote.origin.push '+refs/heads/*:refs/remotes/USERNAME/*'
FIXME: use an unprivileged group "hostmaster" rather than root.
Edit zone data
Guidelines for editing zones:
- Please keep the zone files tidy, by following indentation style
- Add comments as needed to describe obscure records in the zone files
- Remember to keep reverse zones always up to date
- Bump the serials after each update!
Push changes back to master nameserver
- First, update and resolve conflicts, if any:
git pull
- We push to our own branches and then merge into the sandbox:
git push ssh root@lightwave.sugarlabs.org "cd /var/lib/bind/etc/bind && git merge remotes/USERNAME/master"
- Now reload the nameserver configuration:
ssh root@lightwave.sugarlabs.org /etc/init.d/named reload