2
I have a router I'm playing with and I am curious if it is possible for me to give a custom URL name to the IP of the router, so that people in my house can type http://www.my-fancy-url.com
rather than http://aaa.bbb.ccc.ddd
—not only on PCs but also on mobile devices.
I heard that I could do this if I make my own DNS server and somehow either set it to be the default while connected to my router, or tell the people to configure DNS manually (which is still better than forcing people to type 123.456.789 every single time they want to visit).
I tried reading up on how DNS protocol works to try to implement it in Node or Java but the protocol seems too hard for me to wrap my head around.
I also heard OpenDNS is an option, but I want to avoid it.
Are there any simpler options for creating a simple DNS server that can process one specific request before passing it to 8.8.8.8 (or nowhere, since this router is not actually connected to the internet).
Do you have a pc/server on your network that is always powered on? and if so what OS is it? – m3z – 2016-06-25T19:19:57.843
Yes but I'm not sure how that is related to the question. To have my website up, I must have a computer running (since it is hosted on a localhost). – Dmitry – 2016-06-25T19:21:41.337
you need a pc running on your network upon which to host a dns server such that other hosts connecting to your network can query it. If you configure a dns server on your network and then it is not available it may be as if your internet connection was down. – m3z – 2016-06-25T19:24:23.070
@m3z I want to run a DNS server on the same computer that has the website, just bound to a different address/port. – Dmitry – 2016-06-25T19:25:23.247
If it's to be running on the same computer always you might want to investigate the hosts file. On linux that would be /etc/hosts and on windows that is C:\Windows\System32\Drivers\etc\hosts – m3z – 2016-06-25T19:25:54.733
@m3z I want to be able to access it from a mobile device or another computer in my home connected to my router. Not all of those devices have host files. – Dmitry – 2016-06-25T19:26:31.770
Let us continue this discussion in chat.
– m3z – 2016-06-25T19:26:45.567