write domain to /etc/domain.env