Quote:
Originally Posted by TB0ne
So essentially you want to: - Set up a DNS server
- Set up a DHCP server
- Set up a web server
- Set up a mail server
- Configure firewall/networks accordingly
Great; so where are you stuck??? What 'approaches' have you tried, and what exactly do you mean they weren't 'successful'?? There are a LOT of steps/things to do to configure all of these things, so asking us to type up a tutorial to do all this isn't going to be something volunteers on a forum will do. You don't tell us what version/distro of Linux you're using on this, or if these are virtual servers or physical.
There are tutorials you can easily find on how to set up DNS, DHCP, web, and email. Have you consulted any of them???
|
Yes, indeed! The servers are virtual and I am using proxmox virtual environment 8.0.4 using Linux 6.x - 2.6 Kernel.
My approach for the DHCP server was to install dhcp with this command: sudo apt install isc-dhcp-server
In /etc/default/isc-dhcp-server I set the INTERFACESv4 to my internal interface enp0s10. In /etc/dhcp/dhcpd.conf I added my option domain-name-servers 10.20.30.20, the default lease time and the max lease time. I also added the attribute authoritative and set ddns-update-style none. Then I defined my subnet 10.20.30.0 netmask 255.255.255.0 with the range of 60 clients, the option router, the option broadcast address (10.20.30.255) and the domain name server (10.20.30.20).
I restarted isc-dhcp-server. The status is active running, however I get following error message: uid lease 10.20.30.50 for client 2a:7a:7f:10:15:aa is duplicate on 10.20.30.0/24.2a:7a:7f:10:15:aa being the MAC address of my workstation client.
For DNS I installed bind9 using this command: sudo apt install -y bind9 bind9utils bind9-doc dnsutils
In the "named.conf.options" file, I added a new access control list block for my trusted clients, like this:
acl "trusted" {
10.20.30.0/24;
localhost;
};
I also allowed specific properties in the "options" section, including recursion, allow-recursion, listen-on 10.20.30.20 (my DNS server), allow-transfer (none), and allow-query (trusted). Additionally, I added forwarders like this:
forwarders {
10.100.0.1;
10.100.0.2;
};
For the forward and reverse zones, I created two files and referenced them in the "named.conf.local".
zone "project.ant." {
type: master;
file "etc/bind/db.project.ant";
allow-transfer { 10.20.30.10; };
};
zone "30.20.10.in-addr.arpa" {
type: master;
file "/etc/bind/db.30.20.10";
allow-transfer { 10.20.30.10; };
};
My reverse zone file:
$TTL 604800
@ IN SOA ns.project.ant. root.ns.project.ant (
8 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expired
604800 ) ; Negative Cache TTL
1 IN PTR
www.project.ant. ; 10.20.30.30
2 IN PTR ns.project.ant. ; 10.20.30.20
3 IN PTR email.project.ant. ; 10.20.30.40
4 IN PTR gw.project.ant. ; 10.20.30.10
My forward zone file:
$TTL 604800
@ IN SOA ns.project.ant. rootns.project.ant. (
12 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expired
604800 ) ; Negative Cache TTL
@ IN NS ns.project.ant.
@ IN MX 0 mail.project.ant.
ns IN A 10.20.30.20
www IN A 10.20.30.30
email.project.ant. IN MX 10 email.project.ant.
-------
I am currently experiencing a DNS resolution issue with my DNS server configuration using bind9. The specific problem is that DNS entries for various hostnames cannot be resolved correctly.