diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise
index efa4fdf55efbad116897db076ed7b0e9a57b64b3..fbc95b92a045206254fba1e135eeac792768adf3 100755
--- a/src/freedombone-image-customise
+++ b/src/freedombone-image-customise
@@ -1293,6 +1293,10 @@ fi
 
 sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
 sed -i "s|host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
+sed -i "s|use-ipv4=.*|use-ipv4=yes|g" $rootdir/etc/avahi/avahi-daemon.conf
+sed -i "s|use-ipv6=.*|use-ipv6=no|g" $rootdir/etc/avahi/avahi-daemon.conf
+sed -i "s|#disallow-other-stacks=.*|disallow-other-stacks=yes|g" $rootdir/etc/avahi/avahi-daemon.conf
+sed -i "s|hosts:.*|hosts:          files mdns4_minimal dns mdns4 mdns|g" $rootdir/etc/nsswitch.conf
 
 # TODO temporary for stretch
 chroot "$rootdir" /bin/bash -x <<EOF