cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2388
Views
5
Helpful
2
Replies

5512-x dns configuration

dban7
Level 1
Level 1

Hi Guys, 

Im unable to ping any dns from the asa. 
CISCOASA(config-if)# ping google.com
^
ERROR: % Invalid Hostname
Following is my sh run:

hostname CISCOASA
domain-name tpg.com.au

!
no mac-address auto

!
interface GigabitEthernet0/0
<--- More ---> description WAN_Interface
nameif OUTSIDE
security-level 0
ip address dhcp setroute
!
interface GigabitEthernet0/1
nameif INSIDE
security-level 100
ip address x 255.255.255.0
!
interface GigabitEthernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/4
shutdown
<--- More ---> no nameif
no security-level
no ip address
!
interface GigabitEthernet0/5
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
management-only
nameif management
security-level 100
ip address x 255.255.255.0
!
ftp mode passive
dns domain-lookup INSIDE
dns server-group DefaultDNS
name-server 203.12.160.35
domain-name tpg.com.au
access-list 101 extended permit ip interface INSIDE any
pager lines 24
mtu OUTSIDE 1500
<--- More ---> mtu INSIDE 1500
mtu management 1500
no failover
no failover wait-disable
no monitor-interface service-module
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
arp rate-limit 8192
!
nat (INSIDE,OUTSIDE) after-auto source dynamic any interface
route management 0.0.0.0 0.0.0.0 x 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
timeout conn-holddown 0:00:15
timeout igp stale-route 0:01:10
user-identity default-domain LOCAL
<--- More ---> aaa authentication login-history
http server enable
http x 255.255.255.255 management
no snmp-server location
no snmp-server contact
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
telnet timeout 5
ssh stricthostkeycheck
ssh timeout 5
ssh version 2
ssh key-exchange group dh-group14-sha256
console timeout 0
dhcpd address x INSIDE
dhcpd dns 203.12.160.35 interface INSIDE
dhcpd enable INSIDE
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
dynamic-filter updater-client enable
webvpn
hsts
enable
<--- More ---> max-age 31536000
include-sub-domains
no preload
anyconnect-essentials
cache
disable
error-recovery disable
dynamic-access-policy-record DfltAccessPolicy
username x password *x privilege 15
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map global_policy
class inspection_default
inspect ftp
inspect h323 h225
inspect h323 ras
<--- More ---> inspect ip-options
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
inspect dns preset_dns_map
inspect icmp
policy-map type inspect dns migrated_dns_map_2
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
policy-map type inspect dns migrated_dns_map_1
parameters
message-length maximum client auto
message-length maximum 512
no tcp-inspection
!
<--- More ---> service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
call-home
profile CiscoTAC-1
no active
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
destination address email callhome@cisco.com
destination transport-method http
subscribe-to-alert-group diagnostic
subscribe-to-alert-group environment
subscribe-to-alert-group inventory periodic monthly
subscribe-to-alert-group configuration periodic monthly
subscribe-to-alert-group telemetry periodic daily
Cryptochecksum:8e9af6a164c87e316e071203242

Thanks in advance.

 

 



1 Accepted Solution

Accepted Solutions

@dban7 

That IP address of the name-server you've defined would surely be accessible via the OUTSIDE interface? If that is correct change the configuration as such:-

 

no dns domain-lookup INSIDE
dns domain-lookup OUTSIDE

 

View solution in original post

2 Replies 2

@dban7 

That IP address of the name-server you've defined would surely be accessible via the OUTSIDE interface? If that is correct change the configuration as such:-

 

no dns domain-lookup INSIDE
dns domain-lookup OUTSIDE

 

@Rob Ingram 

Thank you very much, I can ping google now.

Review Cisco Networking for a $25 gift card