prep for dns

This commit is contained in:
Patrick 2024-11-15 16:47:57 +01:00
parent 327b544f41
commit df3a557043
3 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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"