View previous topic :: View next topic |
Author |
Message |
leszcz n00b
Joined: 03 Feb 2004 Posts: 20
|
Posted: Tue Apr 27, 2004 5:00 pm Post subject: Dnscache - problem with resolving from internal network |
|
|
Hi !
Situation :
Internet gateway with NAT (ext. A.B.C.D, int. 192.168.0.1/24) and dnscache listening on 192.168.0.1
Ftp server running on host 192.168.0.2, staticaly NAT-ed on gateway.
External DNS for zone mycorp.com with record :
ftp 1D IN A A.B.C.D
Question :
How can I make dnscache to resolve ftp.mycorp.com to 192.168.0.2 instead of A.B.C.D ?
TIA. |
|
Back to top |
|
|
lame n00b
Joined: 23 Dec 2003 Posts: 8
|
Posted: Tue Apr 27, 2004 5:49 pm Post subject: |
|
|
What you're looking for is referred to as split horizon..
If you're running tinydns (you don't mention).. http://www.purebsd.com/o.daemon.djbdns.php is a decent guide on getting started.[/url] |
|
Back to top |
|
|
leszcz n00b
Joined: 03 Feb 2004 Posts: 20
|
Posted: Tue Apr 27, 2004 7:29 pm Post subject: |
|
|
Thanks for response, term "split horizon" was very helpful.
Here : http://www.guinix.com/technote/dualdns.html I found an article describing what I exactly needed.
I hoped it would be easier - using netware dns proxy it was as simple as putting:
192.168.0.2 ftp.mycorp.com
in /etc/hosts.
Regards |
|
Back to top |
|
|
|