Home > DNS Questions

DNS Questions

January 10th, 2021 Go to comments

Question 1

Explanation

An example of DNS is described below:

When you attempt to go to a domain name such as 9tut.com, your browser will instruct your computer to do a DNS lookup on that domain name. This DNS lookup will query a DNS resolver (for example Google at 8.8.8.8). Once the resolver responds, the computer will usually choose the first IP in the response and use that for the connection. In the case of multiple IP addresses, the DNS server will respond with multiple IP addresses and the first IP will usually be used for the request. Due to how most DNS resolvers work, the order of IP addresses usually changes for each request.

Question 2

Explanation

FQDN stands for Fully Qualified Domain Name. The FQDN represents the absolute address of the internet presence. “Fully qualified” refers to the unique identification that guarantees that all of the domain levels are specified. The FQDN contains the host name and domain, including the top level domain, and can be uniquely assigned to an IP address. For example:

R1.9tut.com.

The command “ip domain-lookup” enables DNS-based host name-to-address translation. This command is enabled by default.

Question 3

Explanation

Your router can be configured to use DNS lookups if we wish to use the ping or traceroute commands with a host name rather than an IP address. For example:

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

Then we can Telnet or ping to it:

Router# ping www.cisco.com
Translating "www.cisco.com"...domain server (10.10.10.1) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 198.133.219.25, timeout is 2 seconds:
!!!!!

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

Note: In the above example, 10.10.10.1 is not the IP address of www.cisco.com. This IP address is just the DNS Name Server to resolve “www.cisco.com” to the public IP address “198.133.219.25”.

Note:

By default, any single word entered on an IOS device that is not recognized as a valid command is treated as a hostname to which you want to telnet. The device will try to translate that word to an IP address in a process that can last about a minute.
Consider the following example:

R1#test
Translating "test"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

In the output above we typed an unrecognized command “test”. The router entered the DNS resolution process which lasted about a minute. This can be annoying and this is why this feature is often turned off, especially in the lab environments.
If you don’t need to have a DNS server configured for your router, you can use the “no ip domain-lookup” command to disable the DNS translation process:

R1(config)#no ip domain-lookup

Now, if I mistype a command, the router will not perform a DNS resolution process:

R1#test
Translating "test"
% Unknown command or computer name, or unable to find computer address
R1#

Question 4

Explanation

By default, domain lookup function is enabled on the router so it treats every unrecognized command as a hostname, attempts to make a telnet connection to that which, in turn, attempts to resolve a hostname to IP address by querying the DNS server.
Here is a typical sample.
R1#xyz
Translating “xyz”…domain server (255.255.255.255)
Translating “xyz”…domain server (255.255.255.255) (255.255.255.255)
Translating “xyz”…domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address

Note: In order to save some time we can disable DNS lookup by the “no ip domain lookup” global command.

Comments (4) Comments
  1. Invisible questiond
    January 19th, 2021

    Hello, why we cant see questions?

  2. Anonymous
    May 4th, 2021

    Please Print the questions.

  3. Joe Darvish
    May 4th, 2021

    Hello, why we cant see questions?

  4. velaskon
    July 30th, 2024

    Guys, you can not see question because you need premium access… Get that, and you will get the stuff. Recommended.

Add a Comment