Forward 192.168.0.11 to 192.168.229.129?

I use my android device as a ftp server in two different lan(s). In one, it has ip 192.168.0.11, in the other one it has ip 192.168.229.129 and the router runs openwrt.
Is there any way to instruct dns to forward any call to 192.168.0.1 (made by the program I have on laptop) to 192.168.229.129 and if yes, how?
Thank you.

What hostnames do you use?

I've added the following line to /etc/hosts but it seems to me that it doesn't work:

192.168.229.129 192.168.0.11

Those are IP addresses, not hostnames or a Fully-Quailed Domain Name.

See:

Pick a valid name to use - otherwise the domain .lan should be the default appended in OpenWrt. Hence after you pick a valid hostname for the client, you will have a fully qualified domain name of example.lan.

Next, you can make it whatever - just use the proper syntax and add it to /etc/config/dhcp

config domain
        option ip '192.168.0.11'    
        option name 'example.xxxxxxxxx'
1 Like

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