This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Mapping DNS records (answers)

Hi

I have my internal DNS server - in the DMZ - and want to publish to the outside.

All the record in the DNS are private "192.168.x.x" and I want it to be resolved to the outside by the NAT IP address configured on the ASG.

So when do an nslookup for mail.mycompany.com internally it will be answered by 192.168.1.3 but from outside the netowork, it will be mapped to the public IP assigned for the DNS server in the ASG

How can I do this ?

thanks
Mohammad


This thread was automatically locked due to age.
Parents
  • change the dns response coming from my dns server to the outside

    External entities shouldn't be allowed to query your internal DNS servers.  

    Based on the use case in the first post, there's a few different ways to achieve something similar.  On your internal dns server, you probably have a zone like mycompany.local.  Just create a new zone for mycompany.com and add an A record for the mail host with IP Address 192.168.1.3.  It won't affect your external mycompany.com records at all, it'll just be used for internal lookups.  You could also create a static DNS mapping if you use the Astaro DNS for the same thing.  Just depends how your DNS requests are setup internally as to which would be more efficient and work best to "catch" the request before it heads out to external DNS.  

    What I normally do is use windows DNS on DCs with forwarding set to external public DNS (can be ISP, openDNS, or Google DNS).  I just set Astaro to forward to the DCs.

    Some people like to Set windows DNS to forward to the Astaro and then the Astaro DNS set to forward to external DNS.

    All internal clients should be set to use the windows DNS as DNS servers.

    The Alias command was created and useful in the NT days before Microsoft had a decent DNS server and internal clients were set to all use external DNS for resolution.  This tended to create a lot of unnecessary and redundant WAN traffic and the command was deprecated when internal DNS  and NAT technologies became more common and robust.

    If your asking how to change the source address for traffic coming from your network, as seen by external entities, then you can use SNAT rules to achieve this. 

    Does this help or am I still misunderstanding?
Reply
  • change the dns response coming from my dns server to the outside

    External entities shouldn't be allowed to query your internal DNS servers.  

    Based on the use case in the first post, there's a few different ways to achieve something similar.  On your internal dns server, you probably have a zone like mycompany.local.  Just create a new zone for mycompany.com and add an A record for the mail host with IP Address 192.168.1.3.  It won't affect your external mycompany.com records at all, it'll just be used for internal lookups.  You could also create a static DNS mapping if you use the Astaro DNS for the same thing.  Just depends how your DNS requests are setup internally as to which would be more efficient and work best to "catch" the request before it heads out to external DNS.  

    What I normally do is use windows DNS on DCs with forwarding set to external public DNS (can be ISP, openDNS, or Google DNS).  I just set Astaro to forward to the DCs.

    Some people like to Set windows DNS to forward to the Astaro and then the Astaro DNS set to forward to external DNS.

    All internal clients should be set to use the windows DNS as DNS servers.

    The Alias command was created and useful in the NT days before Microsoft had a decent DNS server and internal clients were set to all use external DNS for resolution.  This tended to create a lot of unnecessary and redundant WAN traffic and the command was deprecated when internal DNS  and NAT technologies became more common and robust.

    If your asking how to change the source address for traffic coming from your network, as seen by external entities, then you can use SNAT rules to achieve this. 

    Does this help or am I still misunderstanding?
Children
No Data