Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dnscache - problem with resolving from internal network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leszcz
n00b
n00b


Joined: 03 Feb 2004
Posts: 20

PostPosted: Tue Apr 27, 2004 5:00 pm    Post subject: Dnscache - problem with resolving from internal network Reply with quote

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
View user's profile Send private message
lame
n00b
n00b


Joined: 23 Dec 2003
Posts: 8

PostPosted: Tue Apr 27, 2004 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
leszcz
n00b
n00b


Joined: 03 Feb 2004
Posts: 20

PostPosted: Tue Apr 27, 2004 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum