Answer the question
In order to leave comments, you need to log in
How to make PCs behind NAT as subdomains?
There is a router on OpenWRT and white IP. There is also a chifty.top domain
How to do this:
notebook.chifty.top -> 192.168.0.2
pc.chifty.top -> 192.168.0.3
server.chifty.top -> 192.168.0.4 ...
That is, as I understand it, I need to enable answer DNS requests on the router and redirect them to internal PCs.
Tell me where and what should be registered?
I feel that it is somewhere in dnsmasq.conf and a couple of ticks in the web face, but I don’t know exactly which ones :)
Answer the question
In order to leave comments, you need to log in
https://forum.openwrt.org/t/adding-dns-entries/3258
Edit file:
/etc/config/dhcp
and add section:
config domain
option name 'host_name'
option ip 'host_ip'
for each host and restart dnsmasq.
Or in LuCi: Network -> Hostnames
Keyword: "Reverse proxy" (any implementation, from nginx to F5, netscaler)
Algorithm, on external DNS:
notebook.chifty.top -> Public IP
pc.chifty.top -> Public IP
server.chifty.top -> Public IP
It is further routed at the name level to your gray IPs behind NAT.
PS
And stop, of course, we are only talking about HTTP traffic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question