Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DNS records visible only for LAN computers

2 views
Skip to first unread message

Peter Macko

unread,
Nov 15, 2009, 2:22:34 PM11/15/09
to bind-...@lists.isc.org
Setup:
I have a domain example.com that is hosted on DNS under control of my internet provider.
Web server www.example.com is hosted by another company.
I have setup a local DNS for computers on my LAN. I have a LDAP server on LAN.

Question:
I want to make LDAP visible only for computers on LAN without altering DNS (of the internet provider).
The name of LDAP server should be ldap.example.com. Is it possible to do it?

I can think of two solutions:
1) I could create master zone for example.com on DNS (on LAN). This way I have to create A record for www.example.com,
but if internet provider changed ip address of the web-server, computers on lan would not reach
www.example.com and I would have to update A record on local DNS.

2) Another solution is to create zonefile for subdomain local.example.com on LAN DNS, so ldap.local.example.com.
But this is not exactly what I want.

What is the correct solution?

Thank you


Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.

Josh Kuo

unread,
Nov 15, 2009, 4:29:29 PM11/15/09
to Peter Macko, bind-...@lists.isc.org
Check out "views" or "split DNS".

On Sunday, November 15, 2009, Peter Macko <peter...@msn.com> wrote:
>
>
>
>
>
> Setup:I have a domain example.com that is hosted on DNS under control of my internet provider.Web server www.example.com is hosted by another company.I have setup a local DNS for computers on my LAN. I have a LDAP server on LAN.
> Question:I want to make LDAP visible only for computers on LAN without altering DNS (of the internet provider).The name of LDAP server should be ldap.example.com. Is it possible to do it?
> I can think of two solutions:1) I could create master zone for example.com on DNS (on LAN). This way I have to create A record for www.example.com,but if internet provider changed ip address of the web-server, computers on lan would not reachwww.example.com and I would have to update A record on local DNS.
> 2) Another solution is to create zonefile for subdomain local.example.com on LAN DNS, so ldap.local.example.com.But this is not exactly what I want.


> What is the correct solution?
> Thank you

> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. <http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010>
>

Mark Andrews

unread,
Nov 15, 2009, 7:09:40 PM11/15/09
to Peter Macko, bind-...@lists.isc.org

In message <SNT114-W6194BD51E...@phx.gbl>, Peter Macko writes:
> Setup:I have a domain example.com that is hosted on DNS under control of my=
> internet provider.Web server www.example.com is hosted by another company.=
> I have setup a local DNS for computers on my LAN. I have a LDAP server on L=
> AN.
> Question:I want to make LDAP visible only for computers on LAN without alte=
> ring DNS (of the internet provider).The name of LDAP server should be ldap.=

> example.com. Is it possible to do it?
> I can think of two solutions:1) I could create master zone for example.com =
> on DNS (on LAN). This way I have to create A record for www.example.com=2Cb=
> ut if internet provider changed ip address of the web-server=2C computers o=
> n lan would not reachwww.example.com and I would have to update A record on=
> local DNS.
> 2) Another solution is to create zonefile for subdomain local.example.com o=
> n LAN DNS=2C so ldap.local.example.com.But this is not exactly what I want.

> What is the correct solution?

Why don't you just create the zone ldap.example.com locally and
transfer it between your local servers?

zone ldap.example.com {
...
allow-query { localnets; };
};

$TTL 3600
@ SOA internal.example.com. peter_macko.msn.com. 1 1200 600 360000 180
@ NS internal.example.com.
@ A <IPv4 address of ldap server>
@ AAAA <IPv6 address of ldap server>

> Thank you =20
> _________________________________________________________________
> Windows Live: Friends get your Flickr=2C Yelp=2C and Digg updates when they=
> e-mail you.
> http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/so=
> cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092=
> 010=
>
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org

Kevin Darcy

unread,
Nov 18, 2009, 11:12:16 AM11/18/09
to bind-...@lists.isc.org
Peter Macko wrote:
> Setup:
> I have a domain example.com that is hosted on DNS under control of my
> internet provider.

> Web server www.example.com is hosted by another company.
> I have setup a local DNS for computers on my LAN. I have a LDAP server
> on LAN.
>
> Question:

> I want to make LDAP visible only for computers on LAN without altering
> DNS (of the internet provider).
> The name of LDAP server should be ldap.example.com. Is it possible to
> do it?
>
> I can think of two solutions:
> 1) I could create master zone for example.com on DNS (on LAN). This
> way I have to create A record for www.example.com,

> but if internet provider changed ip address of the web-server,
> computers on lan would not reach
> www.example.com and I would have to update A record on local DNS.

>
> 2) Another solution is to create zonefile for subdomain
> But this is not exactly what I want.
>
3) Create a zone called "ldap.example.com". Put the A record for your
LDAP server at the apex of the zone.

Obviously, this isn't really scalable -- you don't want to have to
create zones and zone definitions for every resource on your LAN, but
this is the price you pay for being so disjointed from your
webservice/external-DNS provider that they don't even bother telling you
when they change the IPs of your main website. If you want scalability,
you should take control of example.com yourself and then implement
something like "view"s to control how it is presented to internal versus
external clients.


- Kevin

0 new messages