cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
959
Views
4
Helpful
6
Replies

DNS forwarding in L2 switch

pp1326mah
Level 1
Level 1

1. What are the commands to resolve the public DNS from switch? Even if public DNS added in switch with ip name-server commands.

2. How the DNS to be resolved in two seprate networks? 192.168.1.0/24 & 172.16.1.0/24

3. The Network is: Internet-ADSL router- Router-Switch-PC desktop(172.16.1.3)

4. Why DNS resolved only in 192.168.1.0/24 network?,that is directly connected to ADSL router.

5. Ping & browse through IP of any website open through 172.16.1.0 network possible but why not resolved?

6. How to solve this issue for 172.16.1.0 network for DNS forwarding?

Please help.Thanks in advance.

6 Replies 6

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Parag,

you may need to add

int vlan x

ip helper-address

on the switch SVi vlan interface that is in subnet 172.16.1.0/24 so that DNS queries become routable.

DNS queries are sent with 255.255.255.255 broadcast destination that cannot be routed. the above command modify the packet so that it can be routed.

The wan routed has then to modify the source ip address to make possible the answer to come back.

the fact that you can ping an browse using IP addresses means that internat subnet 172.16.1.0/24 is correctly translated by NAT at wan router.

Edit:

if the switch is only L2 the ip helper address has to be added to the router L3 interface in ip subnet 172.16.1.0/24

Hope to help

Giuseppe

Giuseppe

"DNS queries are sent with 255.255.255.255 broadcast destination that cannot be routed"

Are you sure about this ?. If the client has a DNS server configured then wouldn't it be a unicast packet with a destination IP address of the DNS server ?

Edit - Sorry Giuseppe should have mentioned that this is a follow on from this thread -

http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Network%20Infrastructure&topic=WAN%2C%20Routing%20and%20Switching&topicID=.ee71a06&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cd481ac

Jon

Hello Jon,

you are right of course it is the reason why ipconfig /all is checked on user pcs when they claim to have resolution problems to see what DNS servers they are trying to use.

Edit:

I see there was a previous thread I remembered one with a similar title last days.

Hope to help

Giuseppe

Jon,

Till problem is the same.

Only ADSL router connected LAN segment subnet allowed for resolving the DNS but not for any other network? What else configuration required? or required internal DNS server for resolving the other networks?

Kindly help.

Giuseppe,

Thanks for valuable suggestion.

1. I tried mentioned commands with public address of WAN interface of ADSL router

int vlan x

ip helper-address

2. How to create this interface on L2 switch of SVi vlan interface?

Still problem is the same only segment connected to ADSL router of LAN is resolved DNS but not other else.

Kindly help.

Hello Sarag,

my suggestion as Jon has noted is out of context in your case.

I will review the previous thread that Jon has linked.

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco