i have a router with nat to web server inside LAN. Also i have internal DNS server on centos. When i try to access web server from internet it works fine, but when i try to access from the LAN, DNS returns public ip and cannot access to web server. How must i confgure named DNS server to avoid this problem? Thanks.
closed as off-topic by Ward, Falcon Momot, Jenny D, MadHatter, dawud Sep 12 '13 at 15:28
This question appears to be off-topic. The users who voted to close gave this specific reason:
The router, if configured properly should allow lan clients to see lan content properly NAT'd from the public IP.
We'll need to know what DNS server you are asking about.
You're after split horizon DNS. There is more information on the web about the topic than anyone could shack a stick at. http://www.cyberciti.biz/faq/linux-unix-bind9-named-configure-views/