Based on the Linux Master 1 exam syllabusReport an error
named-checkconf (DNS) · httpd -t (Apache) · nginx -t (Nginx).| Service | Package | Daemon | Key config file | Port |
|---|---|---|---|---|
| DNS | bind | named | /etc/named.conf, /var/named/*.zone | 53 (UDP/TCP) |
| DHCP | dhcp-server | dhcpd | /etc/dhcp/dhcpd.conf | 67/68 (UDP) |
| NTP | chrony | chronyd | /etc/chrony.conf | 123 (UDP) |
| Apache | httpd | httpd | /etc/httpd/conf/httpd.conf | 80/443 |
| Nginx | nginx | nginx | /etc/nginx/nginx.conf | 80/443 |
Memory anchors:
httpd, and DNS is named (the package is bind).named-checkconf (DNS), httpd -t (Apache), nginx -t (Nginx).Every service rides the same rhythm of "install → edit config file → syntax check → start/reapply daemon → check status". Only the commands differ per service; the flow is identical. Once this rhythm is in your bones, you can handle a service you have never seen the same way.
| Record | Role |
|---|---|
| A / AAAA | Name→IPv4 / Name→IPv6 |
| CNAME | Alias→canonical name |
| MX | Mail server (lower priority number wins) |
| NS | Authoritative name server for the zone |
| PTR | IP→name (reverse, in-addr.arpa) |
| SOA | Zone authority start and refresh clock (one per zone) |
⚠️ Trap review: In a zone file, if a name does not end with a dot, the zone name (origin) is appended automatically — the targets of CNAME, NS, and MX are safest with a trailing dot (FQDN). When you modify a zone you must increase the Serial for the secondary server to receive the change. You cannot place a CNAME at the top of the domain (@).
| dhcpd.conf directive | Role |
|---|---|
range | Dynamic distribution IP pool |
option routers | Default gateway |
option domain-name-servers | DNS server |
hardware ethernet + fixed-address | MAC-based fixed IP reservation |
server/pool and the client range with allow in chrony.conf.chronyc sources, chronyc tracking, and timedatectl.⚠️ Trap review: The DHCP failure signal is 169.254.x.x (APIPA). NTP stratum 0 is not unsynchronized but the reference clock itself, and 16 is unsynchronized. It is safest to keep dhcpd.conf fixed IPs outside the dynamic
range.
| Concept | Apache | Nginx |
|---|---|---|
| Listening port | Listen | listen |
| Virtual host name | ServerName | server_name |
| Document root | DocumentRoot | root |
| Default document | DirectoryIndex | index |
| Virtual host block | <VirtualHost> | server { } |
| Per-path handling | <Directory>/<Location> | location { } |
| Syntax check | httpd -t | nginx -t |
| Per-directory distributed config | .htaccess supported | Not supported (centralized) |
Apache is stable with a process per connection (prefork) but uses a lot of memory, while Nginx is event-driven and asynchronous, strong at concurrent connections and static serving. In practice, a combination is common with Nginx in front (reverse proxy, static, TLS) and Apache or an app server behind. A reverse proxy is configured with upstream + proxy_pass, and unlike a forward proxy (acting for clients), it distributes requests in front of the servers.
# DNS
named-checkconf # named.conf syntax
named-checkzone example.com zonefile # zone syntax
dig www.example.com / dig -x 1.2.3.4 # Forward/reverse lookup
# DHCP
systemctl status dhcpd
cat /var/lib/dhcpd/dhcpd.leases # Lease status
# NTP/chrony
chronyc sources # Time source list
chronyc tracking # Sync accuracy and stratum
timedatectl # Time, timezone, NTP sync status
# Apache
httpd -t # Syntax check
httpd -S # Virtual host list
httpd -M # Loaded modules
# Nginx
nginx -t # Syntax check
nginx -s reload # Zero-downtime reapplyThis week's services are the history of internet infrastructure itself. DNS (1983) solved the limits of the hosts file with a distributed system, DHCP (1993) extended BOOTP to complete IP automation, NTP (1985) synchronized the clocks of distributed systems, Apache (1995) popularized the web, and Nginx (2004) solved the C10K problem and made large-scale services possible. Today no web request is completed without passing through these five.
www.example.com until they receive the page, let's connect in one line how this week's services cooperate.1. (DHCP) At boot, the PC leases an IP, gateway, and DNS server (DORA)
2. (DNS) The local DNS asks the BIND authoritative server about www.example.com and gets the IP
3. (NTP) Servers sync their clocks with chrony to keep certificates and logs consistent
4. (Nginx) The front Nginx receives the request, serves static files directly and proxies dynamic ones to the backend
5. (Apache) The backend Apache generates the dynamic content and responds
range vs fixed-address : The IP pool to hand out dynamically / a reservation that always gives the same IP to a specific MAC.chronyc tracking : A command that shows sync quality such as the current reference server, offset, and stratum.upstream + proxy_pass..htaccess : The distributed configuration file Apache places in each directory. Nginx does not support it.Click a choice to reveal the answer and explanation.
Question 1
Which is correct for the daemon name and port used by the DNS server BIND?
Question 2
Which is the correct order of the five timer fields of an SOA record?
Question 3
Which lists the 4 steps of DHCP IP assignment in order?
Question 4
Which of the following is correct about NTP stratum?
Question 5
Which directive combination in dhcpd.conf is used to always assign the same IP to a device with a specific MAC address?
Question 6
Which Nginx directive corresponds to Apache's DocumentRoot?
Question 7
Which correctly pairs the virtual host method that serves several domains with a single IP address and the criterion Apache uses to distinguish sites?
Question 8
Which directive combination is used in Nginx to forward requests to backend servers behind it and distribute load across several backends?
Question 9
Which of the following pairs a service with the wrong config syntax check command?
Question 10
A client could not find a DHCP server and ended up with an IP in the 169.254.x.x range. Which is the correct description of this state?
Question 11
Which of the following about the differences between Nginx and Apache is NOT correct?
Question 12
When a user requests a web page, which is the most appropriate order of cooperation among this week's services?