updated relay rules default, added hostname functions