/usr/share/debian-lan-config/fai/config/scripts/DNS_SERVER/30-forwarders is in debian-lan-config 0.19+deb8u1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash
#
set -e
if [ "$FAI_ACTION" = "install" ] || [ "$CONVERT" = "true" ] ; then
if [ "$MAINSERVER_IPADDR" != "$GATEWAY" ] ; then
## Add gateway as DNS forwarder:
sed -i -e "/\/\/ forwarders {/i \ forwarders {${GATEWAY};};" $target/etc/bind/named.conf.options
fi
fi
|