It sounds like you are trying to get a domain name to resolve to an IP as well as getting the computer at that IP to respond appropriately. To do that you want to modify your httpd.conf file, which is located at
/etc/httpd/conf/ by default. You would then add the following at the bottom:
<VirtualHost *:80> # note the asterisk.
ServerName you put whatever you want as a domain. Changing the
your.ip.add.ress:80 means that the machine will only respond by the
ServerName provided if the request is to that IP (You may want that too, but I generally avoid it).
Then, on the client side, I would modify the
hosts file to point that domain to the IP of the testing server. This will let you navigate to the domain and arrive at the testing site. It might be something like this:
127.0.0.1 localhost loopback