cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2024
Views
0
Helpful
6
Replies

Router can't resolve domain names

MoMohib
Level 1
Level 1

 

Router#ping www.google.com
% Unrecognized host or address, or protocol not running.

When i ping google IP it works :

 

Router#ping 216.58.198.206
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 216.58.198.206, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 19/19/19 ms

My network architetcure :

Modem (DNS-server) <------------- Cisco Router <------------- Siwtch <----------- LAN
    192.168.1.1

 

My configuration :

ip name-server 192.168.1.1
ip domain name momohib.com
ip domain lookup 
ip dns server 

Can you please help me to figure out this issue . Thank you

 

 

6 Replies 6

nazimkha
Level 4
Level 4

Can you ping your DNS server from the router

Yes i can ping my dns server from the router
Router#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms

Hello,

 

remove:

 

ip dns server

 

from your configuration, as your DNS server is not the router but an external device.

Hi ,

I deleted ip dns server from the configuration, but i still have the same problem :(

Router#ping www.google.fr
% Unrecognized host or address, or protocol not running.

Hi ,
I deleted ip dns server from the config, but i still have the same problem :(

The syntax:

 

ip domain lookup

 

looks wrong, it should be:

 

ip domain-lookup

Review Cisco Networking for a $25 gift card