IP Host Lookup and Disable DNS 1 Point

Configure local IP host addresses on each router (R1 through R5) so that when an EXEC or privileged user types the router name (R1, R2, R3, R4, or R5), the user can ping or telnet without having to type the full IP address.

Do not configure a DNS server on any router, and disable DNS lookup entries so that incorrect commands on the EXEC or PRIV prompt are not sent to any DNS server. (Hint: This saves you time as well; the IOS command no ip domain-lookup disables DNS queries.)

IP Host Lookup and Disable DNS Solution

To configure local host lookups, use the IOS command ip host name ip address.

Example 8-28 configures Router R2 for IP host lookup for all routers, including itself. Example 8-28 ip host Command on R2

R2#configure terminal

Enter configuration

commands,

one

per line. End with CNTL/Z.

R2(config)#ip

host

r5

144

254

155

1

R2(config)#ip

host

r4

144

254

154

1

R2(config)#ip

host

r3

144

254

153

1

R2(config)#ip

host

r2

144

254

152

1

R2(config)#ip

host

r1

144.254.151.1

Example 8-29 disables DNS lookups for the remote DNS server.

Example 8-29 no ip domain-lookup on R2

R2(config)#no ip domain-lookup

The same commands are installed on R1, R3, R4, and R5. See the full working configuration at the end of this chapter.

This completes the physical setup for this sample lab. You can now start configuring IP network routing on the PIX followed by the routers.

Was this article helpful?

0 0

Post a comment