Setting The Hostname

as it shows is the how to ..perfect setup! the thing is that i don't understand what it does exactly!

i replaced server1.example.com with the one i use ( ady.xhost.ro ).
hostname shouldn't be replaced with the nostname name i gave during installation ( e.g.: host1 )?
i followed the 2 stepts and no message replied! is that good or what?