ffsb
New Around Here
Good Morning everyone!
I am running an https service on one of my local subnet PC; I am also exposing this same service through merlin to the internet using port forwarding finally I am using DDNS to map my external IP to a proper dns name...
something like:
foo.bar.com -> via DDNS -> external public IP = 1.2.3.4
1.2.3.4 ->merlin which forward port 443 to LAN -> 192.168.0.10:4443
the problem is that I would like my local devices to be able to resolve directly foo.bar.com to the local IP 192.168.0.10 to avoid a round trip through my ISP...
I tried to add the mapping in my /jfss/configs/hosts.add
I tried to add the mapping in /jfss/configs/dnsmasq.add
however no matter what, when I try to nslookup foo.bar.com on the merlin machine itself (or one of my local PC) I always seem to get the public IP... note I force the resolution to be done by merlin by running:
nslookup foo.bar.com 192.168.0.1
on the other hand, dnsmasq entries seem to be used as well since I can get the local IP when I resolve server1... it is just a priority order... it seems that they are only used if the external DNS doesn't have the answer....
I am running an https service on one of my local subnet PC; I am also exposing this same service through merlin to the internet using port forwarding finally I am using DDNS to map my external IP to a proper dns name...
something like:
foo.bar.com -> via DDNS -> external public IP = 1.2.3.4
1.2.3.4 ->merlin which forward port 443 to LAN -> 192.168.0.10:4443
the problem is that I would like my local devices to be able to resolve directly foo.bar.com to the local IP 192.168.0.10 to avoid a round trip through my ISP...
I tried to add the mapping in my /jfss/configs/hosts.add
192.168.0.10 foo.bar.com server1
I tried to add the mapping in /jfss/configs/dnsmasq.add
address=/server1.mydomain.com/foo.bar.com/server1/192.168.0.10
however no matter what, when I try to nslookup foo.bar.com on the merlin machine itself (or one of my local PC) I always seem to get the public IP... note I force the resolution to be done by merlin by running:
nslookup foo.bar.com 192.168.0.1
on the other hand, dnsmasq entries seem to be used as well since I can get the local IP when I resolve server1... it is just a priority order... it seems that they are only used if the external DNS doesn't have the answer....
- running latest merlin+diversion+dnsmasq and using afraid-ddns (& google ddns for other services... )
- merlin's internal IP is 192.168.0.1
- using dns filter to force dns resolution to the router (bypassing a few fireTV because they had an issue with pixelsrv-tls)
- using openDNS on the WAN config
admin@frog:/jffs/configs# ls -l /etc/resolv.conf
lrwxrwxrwx 1 admin root 16 Oct 30 17:43 /etc/resolv.conf -> /tmp/resolv.conf
admin@frog:/jffs/configs# cat /tmp/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
admin@frog:/jffs/configs# cat /rom/etc/resolv.conf
nameserver 127.0.0.1
admin@frog:/jffs/configs#
lrwxrwxrwx 1 admin root 16 Oct 30 17:43 /etc/resolv.conf -> /tmp/resolv.conf
admin@frog:/jffs/configs# cat /tmp/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
admin@frog:/jffs/configs# cat /rom/etc/resolv.conf
nameserver 127.0.0.1
admin@frog:/jffs/configs#