HOSTS=/etc/hosts
FQDN=`hostname`.$new_domain_name

echo $reason $interface $FQDN

if [ "x$reason" = "xBOUND" -a "x$interface" = "xeth0" -a -n "$FQDN" -a -n "$new_ip_address" ] && [[ $(hostname) != localhost* ]]; then
        sed -i /\\s$FQDN$/d $HOSTS
        echo $new_ip_address    $FQDN `hostname` >> $HOSTS
fi
