From df3a557043d6865aed98af5598525caab0cdff72 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 15 Nov 2024 16:47:57 +0100 Subject: [PATCH] prep for dns --- configs/debian/bookworm_server.json | 2 +- configs/scripts/server.sh | 4 ++-- configs/ubuntu/noble_server.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/debian/bookworm_server.json b/configs/debian/bookworm_server.json index c7e9a49..28008db 100644 --- a/configs/debian/bookworm_server.json +++ b/configs/debian/bookworm_server.json @@ -6,7 +6,7 @@ "repositories": [], "replace_repositories": "False", "keyrings": [], - "packages": "nginx grub-pc linux-image-amd64 docker.io make curl openssl nano isc-dhcp-server", + "packages": "nginx grub-pc linux-image-amd64 docker.io make curl openssl nano isc-dhcp-server bind9 bind9utils bind9-doc", "create_ca": "True", "preinstall_scripts": [ "configs/scripts/ca.sh" diff --git a/configs/scripts/server.sh b/configs/scripts/server.sh index 3671493..fa5e88f 100755 --- a/configs/scripts/server.sh +++ b/configs/scripts/server.sh @@ -22,9 +22,9 @@ while true; do fi done -echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces +echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0\n dns-nameservers 192.168.1.1" | tee -a /mnt/etc/network/interfaces cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/ sed -i 's/^INTERFACESv4=.*/INTERFACESv4="enp0s3"/' /mnt/etc/default/isc-dhcp-server -read a +chroot /mnt /bin/bash -c "systemctl enable bind9" diff --git a/configs/ubuntu/noble_server.json b/configs/ubuntu/noble_server.json index 0cc935e..14c3679 100644 --- a/configs/ubuntu/noble_server.json +++ b/configs/ubuntu/noble_server.json @@ -6,7 +6,7 @@ "repositories": [], "replace_repositories": "False", "keyrings": [], - "packages": "nginx grub-pc linux-image-generic docker.io make curl openssl nano isc-dhcp-server", + "packages": "nginx grub-pc linux-image-generic docker.io make curl openssl nano isc-dhcp-server bind9 bind9utils bind9-doc", "create_ca": "True", "preinstall_scripts": [ "configs/scripts/ca.sh"