I would like to access my RPi on my local network by a FQDN that I have. Example: my home network can be reached at www.mydomain.com and that in turn with port forwarding will reach my RPi internally at 10.0.0.50 (set statically in the router/RPi)
From internally I would like to reach the same RPi at its FQDN of rpi.mydomain.com. Since the hostname = rpi and the static IP = 10.0.0.50 it seems like just adding to the /etc/hosts with the entry: 10.0.0.50 rpi.mydomain.com Should accomplish this. BUT... that's not the case. I can't seem to get around the problem that any hostname gets the .local appended to it in the browser. So all local request end up as rpi.local not rpi.mydomain.com.
I guess my question is "where is the raspberrypi.local DNS record cached and how can I clear it"? with my current setup I should be able to reach it at rpi.local at the least.