cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2557
Views
7
Helpful
9
Replies

How to resolve the ISP DNS from L2 switch?

pp1326mah
Level 1
Level 1

How to resolve the service provider DNS from L2 switch.

Find the detailed scenario in attached network diagram with router and switch configurations.

The network is-

Internet-Service Provider Modem-Cisco router-Cisco switch-pc/desktop

with this setup we are able to ping the network of

1. Service provider(LAN & WAN IPs-123.*.*.* & 192.168.1.1/30)

2. External DNS (202.*.*.*) from pc/desktop(172.16.0.3/29- entered static IP with static Service provider DNS in TCP/IP properties)

but if i browse the google.com from desktop , showing DNS error and google.com not opened.From this same dektop we are able to ping the public IP of google.com.

why this PC/desktop can't resolved the DNS or not able to access the internet?

If i ping from cisco router(192.168.1.2/30) to google.com, the DNS was resolved and ping response is also OK,

but if i ping to google.com from cisco switch(172.16.0.2/29), the DNS was not resolved & gives request time out or no ping response.

Service Provider DNS IPs are alredy added same in switch and router.

1. Which commands are require to be enter in the switch for all FE ports will be able to resolve service provider DNS? & access the internet from switch end.

2. Is it any DNS forwarding configuration required by switch? or any configuration to be update or change in current configurations? Kindly help.

9 Replies 9

Jon Marshall
Hall of Fame
Hall of Fame

Your switch is a L2 switch so it does no DNS forwarding. The switch is nothing to do with the problem you have.

Can you -

1) post the output of "ipconfig /all" from your pc/desktop

2) Try to access google.com by IP address rather then URL in your browser and report the results.

Jon

Thanks Jon,

1. Find the attached output of ipconfig/all from PC/desktop.

2. I am able to access google.com through its public IP address.

PP

Jon Marshall
Hall of Fame
Hall of Fame

PP

Your router DNS servers are different from your PC's, is this just a typo ? ie.

router name servers -

202.149.108.192

202.149.108.111

PC name servers -

202.149.208.92

202.149.208.11

As you router can resolve DNS names i suggest you update the client and test again.

Jon

Thanks Jon,

I had updated same as per routers and switch DNS in PC/desktop, still problem is same.

Able to ping from PC/desktop and browse to google.com through IP but not ping google.com and browse via name through PC/desktop.

PP

Just to clarify where we are

1) You can ping the IP of google AND www.google.com from the router ?

2) From the desktop you can ping the IP of google and you can ping the DNS servers but you cannot ping www.google.com ?

If so can you

1) on the desktop in a dos prompt can you type

"nslookup" and post the result

2) post a "traceroute " from the desktop

Jon

Jon,

Pls find the result of nslookup and traceroute from PC'desktop end.

1. nslookup:

C:\>nslookup

DNS request timed out.

timeout was 2 seconds.

*** Can't find server name for address 202.149.108.192: Timed out

DNS request timed out.

timeout was 2 seconds.

*** Can't find server name for address 202.149.108.111: Timed out

*** Default servers are not available

Default Server: UnKnown

Address: 202.149.108.192

2. Traceroute:

C:\>tracert 74.125.67.100

Tracing route to 74.125.67.100 over a maximum of 30 hops

1 20 ms <1 ms <1 ms 172.16.0.1

2 <1 ms <1 ms <1 ms 192.168.1.1

3 28 ms 27 ms 29 ms 123.252.144.1

4 26 ms 26 ms 25 ms 202.149.208.68

5 39 ms 28 ms 29 ms 59.162.20.226

6 27 ms 28 ms 27 ms 59.163.16.1

7 216 ms 215 ms 217 ms 59.163.16.146

8 227 ms 229 ms 238 ms 209.58.26.1

9 226 ms 226 ms 226 ms 216.6.97.22

10 226 ms 226 ms 227 ms 4.69.138.222

11 235 ms 231 ms 232 ms 4.69.132.89

12 235 ms 234 ms 234 ms 4.69.134.146

13 232 ms 232 ms 234 ms 4.68.17.16

14 233 ms 232 ms 233 ms 4.79.22.38

15 233 ms 234 ms 233 ms 209.85.241.50

16 247 ms 253 ms 248 ms 216.239.48.69

17 247 ms 247 ms 248 ms 72.14.239.131

18 258 ms 257 ms 252 ms 209.85.255.194

19 248 ms 249 ms 250 ms 74.125.67.100

Trace complete.

malaradi83
Level 1
Level 1

Hello,

i don't see any problem with you config just verify this tips:

1-if ip routing enable on your switch please add default route pointing to your router inside interface.

2-make sure port F0/24 on the switch is dot1q encapsulation insted of ISL.

3-Vlan 100 is created on the switch if you issue show vlan bri

4-PC gateway is your router not switch.

5-try other static DNS on your PC like 4.2.2.2 or 217.17.233.49.

please let me know how is going with you.

1. FYI.ip routing not worked in L2 switch

2. Yes: F0/24 switch dot1q encapsulation

3. I had added PC gateway as a router ip instaed of switch

4. Mentioned DNS also tried.

But problem is same as it is:

1. google.com is not ping from pc/desktop end, but ip of google.com ping ok.google.com resolved from router but not switch.

2. Instead of google.com, ip works in browser to open google.com.

Still i am in same issue phase,Why L2 switch or ethernet ports not resolved public DNS? Give your valuable suggestion.

Hello,

can you please try to connect you PC directly to your router and static your DNS on you PC and let me know what you get.

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: