11-10-2019 01:39 AM
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.
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.
11-10-2019 01:45 AM
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.
11-10-2019 02:17 AM - edited 11-10-2019 02:23 AM
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
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