0023_Cisco: DNS

DNS (Domain Name System) on Cisco devices translates domain names into IP addresses, simplifying network management. Cisco routers and switches can use DNS to resolve hostnames in configurations or when executing network commands like ping or telnet.

#DNS "A" record = used to map names tp IPv4 address
#DNS "AAAA" record = used to map names to IPv6 address
#TCP and UDP port = 53
#Windows based OS cmd/ps
	ipconfig /displaydns		#to show local DNS cache
#Cisco routers can be configured as a DNS client
		ip dns server			#to create your own table on the router use:
		ip host R1	192.168.0.1
		ip host PC1	192.168.0.101
		ip host PC2	192.168.0.102
		
		ip name-server 8.8.8.8
		ip domain lookup		#to enable perform DNS queries (enable by default) old version of the command ip domain-lookup
	show hosts					#to show cache and hosts. temp - temprorary entry; perm - manual configered
	ip domain name itbumper.com #to set a domain name