#!/bin/bash
cat > /etc/hosts <<EOF
127.0.0.1   localhost localhost.localdomain localhost4 localhost
127.0.0.1   localhost.localdomain4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
EOF

/usr/bin/cat /tmp/envoyinstack/tools/iplist.txt|awk '{print $1}'|awk -F '.' '{print $0,"mysql0"NR"-"$4}' >> /etc/hosts
