cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
24320
Views
1
Helpful
2
Replies

Unrecognized host or address, or protocol not running.

gozarrojas
Level 1
Level 1

Good evening, I try to perform the following topology but I cannot resolve the domain name that I configured on my DNS server. But I can ping the IP.

 

DHCPv4.png

DNS:

#

# This is a sample network config uncomment lines to configure the network

#

 

 

# Static config for eth0

auto eth0

iface eth0 inet static

address 172.16.0.3

netmask 255.255.0.0

gateway 172.16.0.1

up echo nameserver 172.16.0.2 > /etc/resolv.conf

# DHCP config for eth0

# auto eth0

# iface eth0 inet dhcp

 

#########################

127.0.1.1 DNS
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.16.0.1 r2.lab r2
192.168.0.1 r1.lab r1
172.16.0.3 mycomputer.com

 

#########################

R1(config)#do ping mycomputer.com
Translating "mycomputer.com"...domain server (172.16.0.3)
% Unrecognized host or address, or protocol not running.

 

#########################

R1 (IOU-L3-15.4)

R1(config)#ip domain-lookup
R1(config)#ip name-server 172.16.0.3

 

You only have one DHCP Server configured and the problem is name resolution

.It only resolves on the same DNS Server. And there is ping among all.

 

I hope you can guide me.

 

2 Replies 2

Leo Laohoo
Hall of Fame
Hall of Fame

To all concerned,
It is very clear this thread is school work.
Help the students learn: Post the links to documents and configuration guides.
Please refrain from handing out answers.

Hello,

 

you might want to try and add:

 

ip domain-name X

 

to your configuration...

 

Also, have a look at the document below:

 

https://www.cisco.com/c/en/us/support/docs/ip/domain-name-system-dns/24182-reversedns.html

Review Cisco Networking for a $25 gift card