[debian-lan-devel] [debian-lan] 01/02: Make sure dnsmasq listens on the internal interface.

Andreas B. Mundt andi at moszumanska.debian.org
Thu Jun 19 09:38:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

andi pushed a commit to branch master
in repository debian-lan.

commit 6db4eb598363a5f5a331ae6ffe71d41f970f2c87
Author: Andreas B. Mundt <andi at debian.org>
Date:   Thu Jun 19 10:53:04 2014 +0200

    Make sure dnsmasq listens on the internal interface.
---
 fai/config/scripts/GATEWAY_A/10-misc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/fai/config/scripts/GATEWAY_A/10-misc b/fai/config/scripts/GATEWAY_A/10-misc
index 04592bc..c883af4 100755
--- a/fai/config/scripts/GATEWAY_A/10-misc
+++ b/fai/config/scripts/GATEWAY_A/10-misc
@@ -11,7 +11,7 @@ if [ "$FAI_ACTION" != "install" ] && [ "$CONVERT" != "true" ] ; then
 fi
 
 ## Generate '/etc/network/interfaces':
-cat > $target/etc/network/interfaces <<EOF
+cat > ${target}/etc/network/interfaces <<EOF
 # The loopback network interface
 auto lo
 iface lo inet loopback
@@ -28,3 +28,10 @@ iface eth0 inet static
 auto eth1
 iface eth1 inet dhcp
 EOF
+
+
+## Serve internal interface:
+cat > ${target}/etc/dnsmasq.d/DebianLAN.conf <<EOF
+## Listen for DNS queries on internal interface:
+interface=eth0
+EOF

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git



More information about the debian-lan-devel mailing list