Exactly!
Now I know that what I'm trying to do is
spoofing.
Don't worry, I'm not trying to attack anyone. Here is the deal:
We have a Debian ProFTPd server.
Its local address is 192.168.1.254.
Its WAN address is something like 1.2.3.4 (the company's internet box).
We also have a website hosted at 5.6.7.8 (web hosting provider).
We own
mydomain.com and manage it with
gandi.net.
The address
ftp.mydomain.com points to 1.2.3.4.
The address
www.mydomain.com points to 5.6.7.8.
We all have laptops and work both inside and outside the office.
We all have a backup program configured to send files to
ftp.mydomain.com.
I would like to configure
spoofing in our local network so the address
ftp.mydomain.com (and exclusively this one) is resolved to 192.168.1.254. Whatever other name should be resolved according to worlwide DNS servers.
How can I do that?
I already configured a Debian bind9 server in the local network. Is that the answer? What should I write in the zone file?
Is there another solution? Which one?
Thanks for your help