08-14-2018 05:39 AM
Hi everyone,
I have a public domain name with a public ip address that redirect to an internal server in my LAN for external access.
- Domain name : momohib.domain.com
- Public ip address : 81.276.XX.XX
i configured DNS resolution in my cisco router isr4321 to resolv the same domain name locally in my LAN.
momohib.domain.com ---------------------> 192.168.10.20
My configuration :
ip domain name domain.com
ip host domain.com ns routeur-dns.domain.com
ip host routeur-dns.domain.com 192.168.20.1
ip host momohib.domain.com 192.168.10.20
ip dhcp pool LAN
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 192.168.20.1 192.168.1.1
when i do nslookup momohib.domain.com
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: momohib.domain.com
Address: 81.276.XX.XX
I'm always on the public ip address . how can i please resolv the public domain name locally ?
thank you
08-14-2018 06:10 AM
Hello,
configure the below globally:
ip dns server
ip dns spoofing
08-14-2018 06:15 AM
I think you are missing the commands
R1(config)# ip dns server
R1(config)# ip domain-lookup
so your local router does not really act as dns server that respond to dns requests,
your answer may come from another cached data or from 192.168.1.1
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide