Lpic – 2 quiz

  1. What is the name of the main configuration file for BIND9 and where is it located?

A) /etc/named.conf

B) /etc/bind/named.conf

C) /usr/share/doc/bind/named.conf.default

D) /var/ named/named.conf

#linux #LPIC-2 #Ubuntu #RedHat #GulianTechnology #share

Answer: A and B

/etc/named.conf is the main configuration file for BIND 9 on RedHat

[root@rhel9 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="9.1 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.1 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"
[root@rhel9 ~]# ls -l /etc/named.conf
-rw-r-----. 1 root named 1722 Sep 29  2022 /etc/named.conf
[root@rhel9 ~]# 

/etc/bind/named.conf is the main configuration file for BIND 9 on Ubuntu

petru@petru-ubuntu:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 23.04"
NAME="Ubuntu"
VERSION_ID="23.04"
VERSION="23.04 (Lunar Lobster)"
VERSION_CODENAME=lunar
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=lunar
LOGO=ubuntu-logo
petru@petru-ubuntu:~$ ls -l /etc/bind/named.conf
-rw-r--r-- 1 root bind 458 Feb 22 17:10 /etc/bind/named.conf
petru@petru-ubuntu:~$ 

2. What is the name of the most used DNS software on Linux?


A) BIND
B) djbdns
C) dnsmasq
D) pdnsd
E)PowerDNS

Answer: A

“BIND 9 has evolved to be a very flexible, full-featured DNS system. Whatever your application is, BIND 9 probably has the required features. As the first, oldest, and most commonly deployed solution, there are more network engineers who are already familiar with BIND 9 than with any other system.”
https://www.isc.org/bind/

3. Where are located BIND default zone files on an Ubuntu distribution?
A) /etc/named/
B) /etc/bind/
C) /var/named/
D) /bind

Answer: B

petru@petru-ubuntu:~$ ls -l /etc/bind/db*
-rw-r--r-- 1 root root 255 Feb 22 17:10 /etc/bind/db.0
-rw-r--r-- 1 root root 271 Aug 25  2020 /etc/bind/db.127
-rw-r--r-- 1 root root 237 Aug 25  2020 /etc/bind/db.255
-rw-r--r-- 1 root root 353 Aug 25  2020 /etc/bind/db.empty
-rw-r--r-- 1 root root 270 Aug 25  2020 /etc/bind/db.local
petru@petru-ubuntu:~$

4. Name the 3 client utilities installed by default on Linux which you can use to troubleshoot DNS problems.

Answer: host, dig and nslookup

DNS client utilities
DNS client utilities

Leave a Reply