Oracle
1Z0-403 · Question #93
Observe the following script: #!/bin/sh grep search /etc/resolv.conf | grep -q example.com if [ $? -ne 0 ]; then sed -i 's/search /search example.com /g' /etc/resolv.conf fi The script is placed in…
The correct answer is C. It ensures that the example.com domain is always present in the domain name server (DNS) search. See the full explanation below for the reasoning.
Question
Observe the following script: #!/bin/sh grep search /etc/resolv.conf | grep -q example.com if [ $? -ne 0 ]; then sed -i 's/search /search example.com /g' /etc/resolv.conf fi The script is placed in the /etc/dhclient-exit-hooks file of station1. What purpose does this script serve?
Options
- AIt ensures that the station1 IP address remains unchanged.
- BIt ensures that station1 does not contact example.com for host name resolution.
- CIt ensures that the example.com domain is always present in the domain name server (DNS) search
- DIt ensures that the dynamic host configuration protocol (DHCP) server that allocates the IP address for
How the community answered
(68 responses)- A9% (6)
- B18% (12)
- C71% (48)
- D3% (2)
Community Discussion
No community discussion yet for this question.