05.01.2013 Views

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

CCNA Cisco Certified Network Associate Study Guide - FTP Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Resolving Hostnames 361<br />

it doesn’t know my name, and second, because I need to wait for the name<br />

lookup to time out. You can prevent the default DNS lookup by using the no<br />

ip domain-lookup command on your router from global configuration<br />

mode.<br />

If you have a DNS server on your network, you need to add a few commands<br />

to make DNS name resolution work:<br />

� The first command is ip domain-lookup, which is turned on by<br />

default. It only needs to be entered if you previously turned it off (with<br />

the no ip domain-lookup command).<br />

� The second command is ip name-server. This sets the IP address of<br />

the DNS server. You can enter the IP addresses of up to six servers.<br />

� The last command is ip domain-name. Although this command is<br />

optional, it should be set. It appends the domain name to the hostname<br />

you type in. Since DNS uses a Fully Qualified Domain Name<br />

(FQDN) system, you must have a full DNS name, in the form<br />

domain.com.<br />

Here is an example of using these three commands:<br />

Todd2509#config t<br />

Enter configuration commands, one per line. End with<br />

CNTL/Z.<br />

Todd2509(config)#ip domain-lookup<br />

Todd2509(config)#ip name-server ?<br />

A.B.C.D Domain server IP address (maximum of 6)<br />

Todd2509(config)#ip name-server 192.168.0.70<br />

Todd2509(config)#ip domain-name lammle.com<br />

Todd2509(config)#^Z<br />

Todd2509#<br />

After the DNS configurations are set, you can test the DNS server by using<br />

a hostname to ping or telnet a device, as shown below.<br />

Todd2509#ping 2501b<br />

Translating "2501b"...domain server (192.168.0.70) [OK]<br />

Type escape sequence to abort.<br />

Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is<br />

2 seconds:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!