27.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
<webserver_1_IP> <webserver_1_name>.cloudclub.edu <webserver_2_IP> <webserver_2_name>.cloudclub.edu <LB_IP> <LB_name>.cloudclub.edu
curl http://<webserver_1_name>.cloudclub.edu/ curl http://<webserver_2_name>.cloudclub.edu/ curl http://<LB_name>.cloudclub.edu/
| Name | Supported OS |
|---|---|
| Bind 9 | Linux, Windows Server 2012+, Windows 10+ |
| DNSmasq | Linux, Mac |
sudo dnf install bind bind-utils -y sudo systemctl enable --now bind
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named";
...
allow-query { any; };
};
zone "cloudclub.edu" {
type master;
file "/var/named/cloudclub.edu.db";
};
sudo mkdir -p /var/named
$ttl 38400
cloudclub.edu. IN SOA dns.cloudclub.edu. admin.cloudclub.edu. (
1611368586
10800
3600
604800
38400 )
cloudclub.edu. IN NS dns.cloudclub.edu.
dns.cloudclub.edu. IN A 192.168.1.11
repo.cloudclub.edu. IN A 192.168.1.11
sudo sytemctl enable --now named
sudo named-checkconf /etc/named.conf
sudo dig @localhost cloudclub.edu
sudo firewall-cmd --permanent --add-service=dns sudo firewall-cmd --reload
dig @192.168.1.11 repo.cloudclub.edu ; <<>> DiG 9.16.23-RH <<>> repo.cloudclub.edu ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 394 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ; COOKIE: 81331712b590bb610100000068085e3f33d592afa55f8a0c (good) ;; QUESTION SECTION: ;repo.cloudclub.edu. IN A ;; ANSWER SECTION: repo.cloudclub.edu. 38400 IN A 192.168.1.11 ;; Query time: 2 msec ;; SERVER: 192.168.1.11#53(192.168.1.11) ;; WHEN: Tue Apr 22 20:27:59 PDT 2025 ;; MSG SIZE rcvd: 91
dig +short @192.168.1.11 repo.cloudclub.edu 192.168.1.11