How To Configure Router As Dns Server?
Domain Name Server (DNS) is used to translate domain names to IP addresses so that your web browser can load the web pages easily and quickly. It is also necessary so that people use the domain names instead of the IP address of the servers.
Some of the Cisco and Linksys router models let you convert them as a DNS server. On this web page, we will show you how to configure router as DNS server.
The Linksys router has a feature called DNS Local Database that lets you search and select the Internet service much faster. Let’s see how to configure DNS Local Database on your Linksys router.
Linksys Gigabit Vpn Router
- Step 1 :First, connect your server(s) to the Linksys router over a wired network.
- Step 2 :Make sure to connect your computer to the Linksys router’s network.
- Step 3 :Now, go to the Linksys Gigabit VPN router’s web-based setup page from your computer’s web browser.
- Step 4 :Click the Configuration tab.
- Step 5 :Select the DHCP option followed by DNS Local Database.
- Step 6 :Now, you will be prompted to enter your DNS server’s hostname and IP address.
- Step 7 :Enter the hostname and IP address of each server one-by-one in the given fields.
- Step 8 :Make sure to click the Add to list button after entering the details of each server.
- Step 9 :Once you have entered all DNS server details in the corresponding fields, click the Save button. Now, configure router as DNS server.
Linksys Wrt54gl Router
- Step 1 :You can use OpenWRT to configure your Linksys WRT54GL router as a DNS server.
- Step 2 :Connect your router to another switch using an Ethernet cable.
- Step 3 :Once you have done it, set up DNSMasq and you can handle various DNS using it.
Configuring a Cisco Router as DNS server
In the section below, we’ll be configuring the Cisco router (192.168.0.2) with DNS Service (192.168.0.1). Two PCs xxxx and yyyy with IP addresses 192.168.0.3 and 192.168.0.4, and a fileserver with IP address 192.168.0.5 are used.
- Step 1 :Initially, on your Cisco router, enable the DNS service and domain lookup using the commands mentioned below.
R1# configure terminal
R1(config)# ip dns server
R1(config)# ip domain-lookup
- Step 2 :Now, configure your Cisco router with a public name server. To do so, use the command mentioned below.
R1(config)# ip name-server 220.127.116.11
- Step 3 :Once you configure it, the communication between the network devices and the router takes place directly.
- Step 4 :For example, if a device on the network sends a DNS request, then it will be transmitted directly to the router.
- Step 5 :After checking the request, the router will send the query to the DNS server over the Internet and the destination’s IP address is sent back to the requesting device.
- Step 6 :Now, configure router as DNS server with your hostnames. To do so, use the command mentioned below.
R1(config)# ip host fileserver 192.168.0.5
R1(config)# ip host xxxx 192.168.0.3
- Step 7 :After completing the above steps, you need to configure your workstations and file servers to use the router’s IP address as the DNS server.
- Step 8 :Go to your Windows computer’s Network and Sharing Center.
- Step 9 :Click the Change adapter settings option.
- Step 10 :Select and right-click on the Local Area Connection option.
- Step 11 :Click the Properties option and go to the Network tab.
- Step 12 :Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Step 13 :In the Preferred DNS Server field, enter your router’s IP address and click OK. Complete the process configure router as DNS server.