05-22-2022 06:35 AM
hi, how can I configure a 2900 router as a DNS SERVER?
05-22-2022 06:50 AM
05-24-2022 12:09 PM
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)
05-24-2022 12:18 PM
User dns request will forward to DNS server, but you need
Ip domain lookup
05-29-2022 01:04 PM
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
05-22-2022 06:51 AM - edited 05-22-2022 06:51 AM
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
05-24-2022 12:14 PM
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)
05-29-2022 01:08 PM
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
05-22-2022 09:53 AM
- 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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide