summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD Delmar Davis <don@suspectdevices.com>2025-02-26 16:45:35 -0800
committerD Delmar Davis <don@suspectdevices.com>2025-02-26 16:45:35 -0800
commit802c7ee9567bb701c3af267a2373a33b807dd207 (patch)
tree1207fe25b6dfb44d9c79717bfd7112e8b522f038
parent5488caca803a9d3489ac00b1b88a78ae29f29f0c (diff)
almost done with this part.
-rw-r--r--docs/buildnotes/colo-relocation.md90
1 files changed, 29 insertions, 61 deletions
diff --git a/docs/buildnotes/colo-relocation.md b/docs/buildnotes/colo-relocation.md
index bd3c245..71ed1b6 100644
--- a/docs/buildnotes/colo-relocation.md
+++ b/docs/buildnotes/colo-relocation.md
@@ -4,14 +4,38 @@
- get the new ip addresses
- put dns zone files into a repo (done)
-- set dns ttls to be small. (600=10m)
-- stand up dns server and connect it to the new ip address range. (in progress)
--
+- set dns ttls to be small. (600=10m) (done)
+- add new dns server to ns records for digithink.com (done)
+- stand up dns server and connect it to the new ip address range. (done)
+- add the new server to the upstream
### put the dns zone files into a repo
-### new dns server (dns.digithink.com)
+- Create a blank repo in bitbucket and create an access token
+- Clone the repo into /etc/bind/zones using the access token
+- Move the .git folder into place and clean up.
+- Add contents of /etc/bind/zones to the repo.
+- Commit and push it.
+```sh
+cd /etc/bind
+git clone https://x-token-auth:REDACTED@bitbucket.org/suspectdevicesadmin/susdev-dns.git
+mv named.conf.local /tmp/
+ls -lsa susdev-dns/
+mv susdev-dns/.git .
+rmdir susdev-dns/
+ls
+git add *
+git status
+git commit -a -m"first checkin"
+git push
+cp named.conf.local zones
+git add zones/named.conf.local
+git commit -a -m"add the named.conf.local"
+git push
+```
+
+### Stand up new dns (dns.digithink.com)
Start a new bookworm container.
@@ -38,63 +62,7 @@ Pull down zone files from git and configure bind9 to use them.
```sh
cd /etc/bind
-ls
-git clone https://x-token-auth:ATCTT3xFfGN0SodQXb30YN_jT98revfOAKnaHPMqVK2a2ARF1Lgx3OX6cYRA0thIh6K-Pr_ySp4ItX8PoWu1XFqiV_94ZEMHOizR4Ktk8S8cm_1i6o1xkpioYGAc5oll4G_wYwKCDpnrM4LlWDnaE8Fl_djiihXkh3
-mv named.conf.local /tmp/
-ln -s zones/named.conf.local .
-systemctl reload named
-systemctl status named
-cd zones
-ls
-nano named.conf.local
-nano master.conf
-systemctl reload named
-systemctl status named.service
-nano master.conf
-systemctl reload named
-systemctl status named.service
-nano master.conf
-nano master.conf
-systemctl reload named
-systemctl status named.service
-git status
-git commit -a -m "delete unused domains"
-git config user.email ul0xnzfaxu14vn34v75polnfqm8v6q@bots.bitbucket.org
-git commit -a -m "delete unused domains"
-git push
-history
-history|cut -c8-200
-root@piage:/etc/bind/zones# history -1000 |cut -c8-200
--bash: history: -1: invalid option
-history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
-root@piage:/etc/bind/zones# history 1000 |cut -c8-200
-ip a
-cd /etc/
-grep -ri 198.202.31.200
-nano systemd/network/10-cloud-init-eth0.network
-apt install nano
-exit
-ip a
-nano systemd/network/10-cloud-init-eth0.network
-grep -ri 198.202.31.200
-grep -ri 198.202.31.200
-ip a
-reboot
-cloud-init status
-cd /etc/
-grep -ri 198.202.31.200
-nano systemd/network/10-cloud-init-eth0.network
-reboot
-ip a
-ping digithink.som
-ping digithink.com
-history
-history|cut c8-200
-history|cut -c8-200
-exit
-cd /etc/named
-cd /etc/bind
-git clone https://x-token-auth:REDACTED@bitbucket.org/suspectdevicesadmin/susdev-dns.git
+git clone https://x-token-auth:REDACTED@bitbucket.org/suspectdevicesadmin/susdev-dns.git zones
mv named.conf.local /tmp/
ln -s zones/named.conf.local .
nano master.conf