added Hostname & DNS_RECORD asparameters;
refactored main()