Answer the question
In order to leave comments, you need to log in
How to forward a domain inside a WiFi network?
Greetings!
There is a local site on the computer, the computer itself is accessible from the WiFi network without restrictions on the internal IP address, but I would like to make the local address for the site in the form of a domain name. For example site.local or site.dev, how can this be implemented?
The first thing that comes to mind is to install some DNS server locally and set the name through it, but I didn’t really find any materials on this matter, and in my opinion this is too clumsy a method.
In general, I will be grateful for advice.
Answer the question
In order to leave comments, you need to log in
Found the answer. I still had to use a DNS server.
I installed DnsMasq, configured it according to the instructions , with the exception of one point - I wrote in the /usr/local/etc/dnsmasq.conf file : address=/.dev/192.168.0.152
.
192.168.0.152 - IP address of the computer with DnsMasq in the WiFi network.
After that, in the WiFi settings of the router, I put the IP address of my computer in the first place in the list of DNS servers.
Then you need to wait for the DNS cache to be updated (or update manually) on devices connected to the same network and the site will be available on them.
PS. I almost forgot - you need to remove all entries associated with the .dev domain from the /etc/hosts file . I didn't work with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question