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?
A.
It ensures that the station1 IP address remains unchanged.
B.
It ensures that station1 does not contact example.com for host name resolution.
C.
It ensures that the example.com domain is always present in the domain name server (DNS)
search domain.
D.
It ensures that the dynamic host configuration protocol (DHCP) server that allocates the IP
address for station1 does not override its /etc/resolv.conf file.