Cisco CCNA Certification Exam Tutorial:  DNS And The IP Name-Server Command
Cisco CCNA Certification Exam Tutorial: DNS And The IP Name-Server Command

DNS Behaviors Of A Cisco Router Are Important Topics For Both The CCNA Exam And Real-world Production Networks, And You Probably Didn't Know There Were So Many DNS Details Before You Began Studying For The Exam! In This Tutorial, We'll Look At The Ip Name-server Command And Its Proper Usage.When A Command Is Mistyped On A Cisco Router, The Default Behavior Of The Router Is To Attempt To Resolve It Via DNS. First, The Router Looks For An IP Host Table On The Local Router To Perform This Resolution Thats What The Translating Word In The Output Is Referring To. If Theres No IP Host Table Or The IP Host Table Doesnt Contain An Entry For What You Typed, The Router Will Send A Broadcast In An Attempt To Resolve This Name Through A Remote DNS Server. To Prevent This Broadcast, Enter The Global Command No Ip Domain-lookup. Of Course, To Use DNS To Resolve Hostnames, Ip Domain-lookup Would Have To Be Reenabled If Its Been Turned Off.R2continTranslating "contin"...domain Server (255.255.255.255) Unknown Command Or Computer Name, Or Unable To Find Computer AddressA Command Is Mistyped As Contin. The Cisco Routers Default Behavior Is To Resolve This Entry Locally Via An IP Host Table, Which Isn't Present On The Router. A Broadcast Is Then Sent Out To Find A DNS Server To Perform The Name Resolution. The DNS Lookup Attempt Must Time Out Before The Configuration Can Continue.R2conf TR2(config)no Ip Domain-lookupR2continTranslating "contin" Unknown Command Or Computer Name, Or Unable To Find Computer AddressWith No Ip Domain-lookup Configured, The Router Doesnt Attempt To Find A Remote DNS Server. It Sees There Is No Local Resolution Configured And Almost Immediately Sends A Message To The Console That The Name Cant Be Resolved. R2conf TR2(config)ip Domain-lookupR2(config)ip Name-server 10.1.1.1R2continTranslating "contin"...domain Server (10.1.1.1) A DNS Server Is Installed On The Network With The IP Address 10.1.1.1. DNS Lookup Is Reenabled With The Command Ip Domain-lookup, And The IP Address Of The DNS Server Is Specified With The Ip Name-server Command.It's Just That Easy To Tell A Cisco Router Exactly Where The DNS Server Is!