Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (10 sloc) 424 Bytes
#!/bin/sh
# Due to https://jira.booking.com/jira/browse/ITPRD-3316
while sleep 1
do
if ! grep -q dqs /etc/resolv.conf
then
echo "$(date): Updating /etc/resolv.conf with booking.com development hosts"
sudo perl -pi -e 's/^search (.*)/search booking.pcln.com prod.lhr1.booking.com corp.lhr1.booking.com ams4.prod.booking.com ams4.corp.booking.com dqs.lhr1.booking.com/' /etc/resolv.conf
fi
done