Hello,
We are creating a new infrastructure in our DC.
It involves Border, Firewall, Core, Lan Access... AND DNS solution.
So, to reduce the complexity and by security questions, I created a simulated Scenario that express my doubt.
The ideas in here are:
- Avoid double NAT on stations accessing internal servers
- Distribute the DNS entries on their own DNS-Server-Costumer.
- Simplify the managing of our Authoritative DNS-Servers, not needing to filter the source of the request to define the reply.
So, to the practice!
Please follow the my logic on the attached drawing.
First - Internal Stations reaching internal servers using internal DNS
Very Simple! ASA does Nothing!
- Lets say station 192.168.10.65 need to access www.costumer-a.com.
- The station is configured to consult internal DNS(192.168.10.10).
- The Internal DNS reply with 192.168.10.20.
- Station talks directly to Server
- And every thing is blue...
P.S.: This works also to customer b.
Second - External Client(Internet) reaching internal servers(by NAT)
Here comes my doubts.
- Lets say an internet station 200.201.202.203 need to access www.costumer-a.com.
- It will make a DNS consult by www.costumer-a.com to the DNS that is configured over there.
- DNS World Hierarchy will deliver this consult to aour DNS server(172.30.100.10)
- Our DNS will make a consult of "www.costumer-a.com" to 172.30.10.10
- This consult will reach the internal DNS-Server(192.168.10.10)
- The Internal DNS reply with 192.168.10.20 to our DNS-Server
- When this reply passes across ASA, it will Re-Write the answer to Nated IP 172.30.10.20
- Will it??? Even been the inverse of the usual?
- And if the communication between our DNS-Server and our Costumer DNS-Server, instead of been a simple consult it occurs as a DNS TCP? Will ASA rewrite this answer?
- If the consult that Internet Station made were "system.costumer-a.com", considering that it doesn't has a Static NAT(It goes out by a overload NAT), What will Happen?
- Our DNS-server will receive this answer and will reply it to the original consult
- The Internet station will receive the DNS Reply with public IP of the server.
- The Internet station will connect to the public IP, that will be Nated.
- And every thing is blue...
Third - Internal Client, misconfigured, using external DNS(8.8.8.8 for example)
Almost as the second situation, but will occours two ReWrites.
- Lets say the station 192.168.10.75 need to access www.costumer-a.com.
- It will make a DNS consult by www.costumer-a.com to the DNS that is forced, 8.8.8.8(google)
- DNS World Hierarchy will deliver this consult to aour DNS server(172.30.100.10)
- Our DNS will make a consult of "www.costumer-a.com" to 172.30.10.10
- This consult will reach the internal DNS-Server(192.168.10.10)
- The Internal DNS reply with 192.168.10.20 to our DNS-Server
- When this reply passes across ASA, it will Re-Write the answer to Nated IP 172.30.10.20
- This is the First ReWrite
- Our DNS-server will receive this answer and will reply it to 8.8.8.8
- Google DNS-Server will receive it and reply 172.30.10.20 to the internal station.
- When this reply passes acros ASA(again), it will Re-Write the answer to Nated IP 192.168.10.20
- This is the Second ReWrite
- The internal station will receive the DNS Reply with internal IP address of the server.
- The internal station will talk directly to the server.
- And every thing is blue...
Will this really happend or there is some more issues that We are not considering?