Ddns on the local network

Hi, all.
Main router #1 (192.168.1.1) NanoPI R5C - OpenWRT 23.05.04 is running as wan and dhcp server, nat is also enabled, port 8090 is open for 192.168.1.180, also on router #1 ddns is configured to domain.ddns.net.
Switch router #2 (192.168.1.2) Xiaomi Mi Router AC2100 - OpenWRT 23.05.04 does not use wan interface and is configured as switch, nat is disabled, Wi-Fi is enabled, cable connected to lan port of main router #1 192.168.1.1. Configured as ‘Dumb’ Access Point.
PC static IP 192.168.1.180 and connected to lan port of router #2 (192.168.1.2).
The PC has no access to ddns from the LAN when querying domain.ddns.net:8090 or any other application port, be it a game server or other programme. If you query 192.168.1.180:8090, everything works and opens.
From outside the internet, when querying domain.ddns.net:8090, access is there and everything works.
I know it's weird to access via ddns on the local network, but originally when I was using 1 router, which is #2, there was no problem and I could access ddns on the local network.
Tried connecting my PC directly to the main router #1 (192.168.1.1) and still no access to domain.ddns.net:8090.
Using nmap it tells me that the port is open.
How can I access ddns (domain.ddns.net:8090) from the local network?

Help me.
Thanks!

port forward 8090


In DNSMasq you can set the address of domain.ddns.net pointing to the local IP address 192.168.1.1, or you can enable NAT hairpinning:

In the Port Forward > Advanced settings:

1 Like

I tried your method. didn't help

Which one? There were 2 provided.

I tried everything and it didn't help

1

1

2

3

image

Change the DNS to point the domain name to the correct private address. Then check from a local device what the domain name is resolving to. You might need to clear the DNS cache on whatever device you're testing from.

Where exactly? Give me a hint

Where what exactly?

where do I specify the dns?

The same place you did it last time. Just delete the entry you added when following @egc's advice and replace it with one that points to the correct internal address.

1 Like
Summary

image

it worked! Thank you.
Is it possible to implement this via port forwarding?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.