cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1174
Views
0
Helpful
8
Replies

dns server

nettuno8_20111
Level 1
Level 1

hi, how can I configure a 2900 router as a DNS SERVER?

8 Replies 8

hi i can't configure the router as DNS SERVER from the pc i gave the command nslookup and it tells me that the server is unknown with the address 192.168.0.1 here is the configuration:

 

ip dhcp pool data
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1

 

ip host voice 172.31.0.2
ip host primary 192.168.200.10
ip host switch-poe 192.168.200.11
ip host ata 192.168.200.33
ip name-server 109.232.88.3
ip name-server 109.232.88.4

 

 

 

interface GigabitEthernet0/1
description data
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto

 

 

ip dns server
ip dns primary DNS soa 192.168.0.1 192.168.0.1 21600 900 7776000 86400

 

10 permit ip host 192.168.10.10 any
20 permit tcp 192.168.0.0 0.0.255.255 any (58 matches)
30 permit udp 192.168.0.0 0.0.255.255 any (7227 matches)
40 deny ip any any (495 matches)

User dns request will forward to DNS server, but you need 

Ip domain lookup 

ip host voice 172.31.0.2
ip host primary 192.168.200.10
ip host switch-poe 192.168.200.11
ip host ata 192.168.200.33
ip host ISP 192.168.0.1
ip name-server 109.232.88.3
ip name-server 109.232.88.4
ip name-server 192.168.0.1

 

ip dhcp pool data
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1
!

 

ip dns server 

ip domain-lookup

 

Extended IP access list 100
10 permit ip host 192.168.10.10 any
15 permit udp any any eq domain (6036 matches)
16 permit udp any eq domain any
20 permit tcp 192.168.0.0 0.0.0.255 any (10 matches)
30 permit udp 192.168.0.0 0.0.0.255 any (12905 matches)
40 deny ip any any

 

I configured the route 2900 as dns server and when I give the command ping ata it translates it into ip address but from the host when I give the nslookup command it gives me the server name and the ip address but the DNS requests timeout and when from the host I write http: // ata does not show me the page

ashishr
Level 1
Level 1

Hi @nettuno8_20111 

 

You can configure DNS server using 'ip name-server #.#.#.#' command. For e.g. 'ip name-server 4.2.2.2'.

For local static entries you can use command 'ip host host-name ip-address' for e.g. 'ip host web-server.test 172.16.10.1'.

 

Refer to the following document for configuration-

https://www.cisco.com/c/en/us/support/docs/ip/domain-name-system-dns/24182-reversedns.html

 

Thanks

ip dhcp pool data
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1

 

ip host voice 172.31.0.2
ip host primary 192.168.200.10
ip host switch-poe 192.168.200.11
ip host ata 192.168.200.33
ip name-server 109.232.88.3
ip name-server 109.232.88.4

 

 

 

interface GigabitEthernet0/1
description data
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto

 

 

ip dns server
ip dns primary DNS soa 192.168.0.1 192.168.0.1 21600 900 7776000 86400

 

10 permit ip host 192.168.10.10 any
20 permit tcp 192.168.0.0 0.0.255.255 any (58 matches)
30 permit udp 192.168.0.0 0.0.255.255 any (7227 matches)
40 deny ip any any (495 matches)

ip dhcp pool data
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1

 

ip host voice 172.31.0.2
ip host primary 192.168.200.10
ip host switch-poe 192.168.200.11
ip host ata 192.168.200.33
ip host ISP 192.168.0.1
ip name-server 109.232.88.3
ip name-server 109.232.88.4
ip name-server 192.168.0.1

 

 

xtended IP access list 100
10 permit ip host 192.168.10.10 any
15 permit udp any any eq domain (6036 matches)
16 permit udp any eq domain any
20 permit tcp 192.168.0.0 0.0.0.255 any (10 matches)
30 permit udp 192.168.0.0 0.0.0.255 any

 

ip dns server

ip domain-lookup

 

I configured the route 2900 as dns server and when I give the command ping ata it translates it into ip address but from the host when I give the nslookup command it gives me the server name and the ip address but the DNS requests timeout and when from the host I write http: // ata does not show me the page

marce1000
VIP
VIP

 

 - In general I advise against using router as dns server, separate lower level networking services in the stack from higher (such as DNS) , if the router gets loaded DNS may get hampered , use separate appliance for DNS.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Review Cisco Networking for a $25 gift card