Solved

DNS Configuration for CISCO

Posted on 2004-09-29
7
399 Views
Last Modified: 2010-04-10
Hi,

I have setup my cisco 1701 to allow internet access, the only way I can get on the internet is to set the DNS settings on my local machine.  What I would like is to setup the DNS config on the router..

I am not sure how to do this..?

Caz
0
Comment
Question by:caz1762
  • 3
  • 2
7 Comments
 
LVL 43

Expert Comment

by:JFrederick29
ID: 12181973
Are you using DHCP?  If not, are you wanting to setup the router as a DHCP server to distribute addresses as well as the DNS settings?

To enable the router to act as a DHCP server, you can use the following global configuration commands for example:

ip dhcp pool dhcppool  <---- create the DHCP pool using whatever name you want
   network 192.168.1.0 255.255.255.0  <---- use your network and mask
   default-router 192.168.1.1  <---- set the default gateway to be sent to clients
   domain-name <domainname>   <---- set the clients domain name
   dns-server 68.x.x.10  <---- set DNS server 1 to your ISP DNS server (primary)
   dns-server 68.x.x.11  <---- set DNS server 2 to your ISP DNS server (secondary)
   netbios-name-server 192.168.1.10  <---- set the WINS server if applicable

Use the command "ip dhcp excluded-address 192.168.1.1" to exclude the router address.  Use the command to exclude other addresses that you want statically assigned, you can use a range as follows:

ip dhcp excluded-address 192.168.1.100 192.168.1.254
0
 
LVL 15

Expert Comment

by:scampgb
ID: 12181983
Hi caz1762,
The Cisco router isn't actually doing the DNS lookups for you.

This means that you have to configure the DNS IP manually on the PC, unless you're picking up your PC's IP address dynamically (DHCP).

If you are, you should be able to configure the DHCP server to issue the IP address of your ISP's DNS server automatically.
Does that help?

0
 

Author Comment

by:caz1762
ID: 12188264
Will this work or do i also need to put in place the dns-server settings.

ip dhcp pool CLIENT
   import all
   network 152.114.0.0 255.255.0.0
   default-router 152.114.0.1
   lease 0 2

Caz
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 43

Expert Comment

by:JFrederick29
ID: 12188846
If you do not want to manually configure the DNS settings, use the dns-server lines.  If you don't, DNS configuration on the clients will need to be manually configured.
0
 

Author Comment

by:caz1762
ID: 12188926
ip dhcp pool CLIENT
   import all
   network 152.114.0.0 255.255.0.0
   default-router 152.114.0.1
   lease 0 2
 dns-server 84.x.x.x
 dns-server 84.x.x.x

Is the above all I need then...

Caz
0
 
LVL 43

Accepted Solution

by:
JFrederick29 earned 480 total points
ID: 12188939
Add this to it...

ip dhcp excluded-address 152.114.0.1

You realize that your DHCP scope is 152.114.0.2 - 152.114.255.254 right? Is your subnet mask correct?
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dns error 6 55
Can’t disable NAT protocol in Windows Server 2012 3 82
DNS server pulling non-authorative answer 3 30
Unable to hit site 2 29
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question