hostname in ACLs

exkor5000exkor5000 Member Posts: 54 ■■□□□□□□□□
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

Comments

  • BubbaJBubbaJ Member Posts: 323
    exkor5000 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.
Sign In or Register to comment.