I'm wishing to simulate DNS for testing purposes, having decided to learn about it for if I was to go into webhosting.
I've considered BIND (and tried setting it up), but that wasn't suited to my purposes.
I wanted to use this to make a development ("dev") copy of my site.
I've had a look here but decided against this as it seemed slightly complex to use.
There's a reason I'm doing this, and it's solely to ensure I can test my site, and server load for it etc. without damaging the live site.
This is my current virtual host:
<VirtualHost 127.0.0.1>
NameVirtualHost mywebsitedomain1.co.uk
ServerName mywebsitedomain1.co.uk
ServerAlias www.mywebsitedomain1.co.uk
DocumentRoot /www/vhosts/mywebsitedomain1.co.uk
ErrorLog /www/Apache22/logs/error.log
<Directory "/www/vhosts/mywebsitedomain1.co.uk">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>
</VirtualHost>
but I intend to do it like this (for testing):
<VirtualHost 12.345.678>
NameVirtualHost mywebsitedomain1.co.uk
ServerName mywebsitedomain1.co.uk
ServerAlias www.mywebsitedomain1.co.uk
DocumentRoot /www/vhosts/mywebsitedomain1.co.uk
ErrorLog /www/Apache22/logs/error.log
<Directory "/www/vhosts/mywebsitedomain1.co.uk">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>
</VirtualHost>
(I don't think 12.345.678 would exist really, it's a placeholder here, in this context).
Note the 127.0.0.1 would be replaced with my website's IP, which I'm intending to simulate for testing purposes. I've already used HOSTS but am trying to go one step further.
Basically, what I'm trying to achieve is - a fake DNS server for testing without damaging the main site if my PHP scripts go wrong - it's set up for a client, and I'm wanting to get it right.
How would you recommend I go about this?