300-300 practice question 2 of 15

Which of the following commands adds a forward DNS record named fileserver01 pointing to the IPv6 address 2001:db8::190 into the DNS zone samba.private on the Samba 4 server dc1?

Full set: 53 questions
Answer options
A: net dns -S dc1 -U Administrator addrecord fileserver01.samba.private AAAA 2001:db8::190
B: dnstool -f dns.tdb add fileserver01.samba.private AAAA 2001:db8::190 -U Administrator
C: samba-dns dynupdate -S dc1 -U Administrator -h fileserver01.samba.private -t AAAA -V 2001:db8::190
D: nsupdatesmb -U Administrator //dc1/samba.private/fileserver01 add AAAA 2001:db8::190
E: samba-tool dns add dc1 samba.private fileserver01 AAAA 2001:db8::190 -U Administrator Correct answer
Correct Answer:
E. samba-tool dns add dc1 samba.private fileserver01 AAAA 2001:db8::190 -U Administrator
Explanation

The samba-tool utility is the primary command-line tool for administering a Samba Active Directory (AD) Domain Controller (DC). The dns add subcommand is the correct method for manually adding a DNS record. The command syntax samba-tool dns add directly maps to the question's requirements. It correctly specifies the target server (dc1), the zone (samba.private), the new hostname (fileserver01), the record type for IPv6 (AAAA), and the corresponding IP address. The -U Administrator option provides the necessary credentials to perform the action.

Why Incorrect

A. The net dns command is used for querying or managing zones, but it does not have an addrecord subcommand for creating individual DNS records in this manner.
B. dnstool is not a standard command-line utility provided by the Samba suite for DNS management.
C. samba-dns is not a valid command. The related sambadnsupdate script is used for dynamic DNS updates, not for manual administrative record creation.
D. nsupdatesmb is not a standard command within the Samba suite. The standard tool for dynamic updates is nsupdate, which has a different purpose and syntax.

Scroll to Top