Hi boys and girls, I have a problem with everything that i mentioned in the subject of the post with mi mikrotik… let me explain, i connect to internet with pppoe, I have configured ddns(dyndns) and it´s work fine, i have a home server behind the router and redirect ports to this server.
/ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=192.168.1.220 to-port=80
it´s work fine from outside http://myserver.org, but from inside of local network http://myserver.org not resolve. if i use http://192.168.1.220 work great(I say this to eliminate any doubt)
the question is, what have to do to resolve domain name on local network?
Are you sure it’s the resolving that fails? I doubt it…
Try nslookup myserver.org from a computer inside the local network and also :put [:resolve myserver.org] on your mikrotik router.
Try to use http://(your current public I address) from inside the network.
If the name resolves ok, I would try adding the public IP address as dst-address in the NAT rule. Then I’d set up a script to update the address in the rule.
nslookup resolve public ip from pppoe interface, is not pretty logic set the public ip as source, because it change every time, I set de pppoe interface as source, but nothing changes. is like if from inside of local network the package dont go to the pppoe interface, just move internally.