cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
601
Views
0
Helpful
2
Replies

Resolv public domain name locally

MoMohib
Level 1
Level 1

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

2 Replies 2

Hello,

 

configure the below globally:

 

ip dns server

ip dns spoofing

pieterh
VIP
VIP

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