cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5371
Views
0
Helpful
7
Replies

Configure Router as DNS server but ?

Kuldeep singh
Level 1
Level 1

Hello Experts,

I am bit confused here about Router as DNS Server.

my main aim to use router ip at place of Preferred dns

field of tcp/ip settings of client computer.

I know only one method (Method 1) to implement this

thing which is given in below link:

Method 1: Using Commands like

http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/257-cisco-router-dns-server.html

ip dns server

ip domain-lookup (enabled by default)

ip domain-name techcom.com

ip name-server 7.7.7.7

ip name-server 8.8.8.8

Method 2: Using Commands like

ip dns view default

dns forwarder 7.7.7.7

dns forwarder 8.8.8.8

ip dns server

Can we configure Router as DNS server through Method 2,

I never seen this method before, where we can use these commands

plz explain with good practical example ?

KS

1 Accepted Solution

Accepted Solutions

Hi,

DNS views are newest way of implementing DNS server on cisco IOS and thir main purpose is to enable split DNS.

both ways you describe will do the same thing.

http://www.cisco.com/en/US/docs/ios/12_4t/12_4t11/htspldns.html

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

View solution in original post

7 Replies 7

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

just method 1.  There is no global command that starts with dns:

R2(config)#dn?  

dnsix-dmdp  dnsix-nat 

R2(config)#dn

ip domain name test.com

ip name-server 7.7.7.7

ip name-server 8.8.8.8

ip dns server

HTH

Hi Reza,

What do you mean to say....

I am not getting

KS

Hi,

What I was saying is that the below commands are not available on the router, or at least the routers I am testing them with

ip dns view default

dns forwarder 7.7.7.7

dns forwarder 8.8.8.8

HTH

Hi Reza,

these commands are part of Cisco IOS...

but i am not confirm about IOS version.

KS

Hi,

DNS Views were available since release 12.4(9)T.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi Cadet,

Thanks for confirmation....

I want to know about these commands:

ip dns view default

dns forwarder 7.7.7.7

dns forwarder 8.8.8.8

ip dns server

what was the purpose of above commands when we

used the old versions.

is it work as like as Method 1 (already described)

or else ??

KS

Hi,

DNS views are newest way of implementing DNS server on cisco IOS and thir main purpose is to enable split DNS.

both ways you describe will do the same thing.

http://www.cisco.com/en/US/docs/ios/12_4t/12_4t11/htspldns.html

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.
Review Cisco Networking for a $25 gift card