# Perform the dig command and capture the output
output=$(dig www.FB.com)
# Check if the output contains the specific string
if [[ $output != *"star-mini.c10r.FB.com"* ]]; then
# Restart the system if the string is not found
echo "String not found, restarting system..."
sudo reboot
else
# Print a message if the string is found
echo "String found, no restart required."
fi