Ok here's my question, if you have a web server installed and running on your machine you can type localhost into a web browser and be taken to 127.0.0.1 please correct me if I'm wrong.
But my question is this, could I make a custom address where I type in mywebsite:com and be directed to my website via a DNS server, the colon instead of the . was intentional.

Thanks in advance,
Francis