I’m trying to move my development stuff over to a small local Debian based server running ispconfig, and need to basically make it so that *.dev is routed to a specific IP. So for example I went to http://some-site.dev it would go to 192.168.0.150
Is there any way of doing this without a fancy/expensive router?
In Windows, I would say ‘modify your hosts file’. It turns out that my answer is exactly the same for Mac. The link will show you how to modify the HOSTS file in OSX, allowing you to resolve specific hostnames (such as http://site-name.dev) on a network where you have no DNS server.
Since my answer was downvoted, I figured I might as well expand on WHY I think this is the best option for you. Here’s a Microsoft article explaining the concept of hosts files (it also touches on the idea that *nix-based systems have the same file) and here’s a great blog post touching on the same thing, with the content focused on Mac’s.
Before DNS was prevalent, the hosts file was the way to go for specific name resolution. Since you do not have a DNS server (and building one can be a PITA, and overkill for what you explained you needed) just use the hosts file.
- Testing domains on intranet/local network?
- In Webmin (BIND DNS), how do I make ns1.xx.com, ns2.xx.com point to 2 different IPs for multiple domains
- Mac Os Server, how to make bind point www.mydomain.com to the same machine bind is installed on?
- how to make local domain name available to people on LAN
- How Do I Point 2 Domains to 1 Website Using DNS?
Leave a comment
- SCP transfer only modified files
- How can I automate clearing and resetting a Linux user’s home directory to a default?
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?