hostname in ACLs
exkor5000
Member Posts: 54 ■■□□□□□□□□
in CCNA & CCENT
if I would to use:
how would the device go about resolving that name, if the hosts file is not present?
Thanks
access-list 1 permit hostname usa-dragon
how would the device go about resolving that name, if the hosts file is not present?
Thanks
Comments
-
BubbaJ Member Posts: 323exkor5000 wrote:if I would to use:
access-list 1 permit hostname usa-dragon
how would the device go about resolving that name, if the hosts file is not present?
Thanks
Well, first, "hostname" is not a keyword. It should be like this:
access-list 1 permit usa-dragon
"Host" is a keyword meaning that the following is an exact IP address (0.0.0.0 wildcard mask). You can put in a DNS name for an IP address. You should specify where the DNS server is with the ip name-server xxxxxx command.