Ubuntu: DNS not working over DSL



Question:

I connect to Internet via a PPPOE connection that i configured manually as below:

/etc/ppp/peers/hamyar  #hamyar:  noipdefault   defaultroute   replacedefaultroute   hide-password   noauth   persist   plugin rp-pppoe.so eth0   user "********"   usepeerdns   

when I connect via "pon hamyar" everything works fine(i have ping response from any IP) except pinging to names like google.com and i cannot open it from my browser. what shall i do?

here's log information:

Connected to 00:09:44:6c:e8:1a via interface eth0   Using interface ppp0   Connect: ppp0 <--> eth0   PAP authentication succeeded   peer from calling number 00:09:44:6C:E8:1A authorized   replacing old default route to eth0 [192.168.1.20]   local IP address 178.173.139.142   remote IP address 80.191.122.18   primary DNS address 80.191.122.5   secondary DNS address 4.2.2.1   


Solution:1

resolv.conf will be overwritten by network manager. You could edit your connection to set other DNSs servers than what you ISP gives you throw DHCP. For this run nm-connection-editor, choose your DSL connection, then IPv4 Settings tab, then on Additional DNS servers add Google DNS servers: 8.8.8.8, 8.8.4.4, or OpenDNS servers: 208.67.222.222, 208.67.220.220.

On command line you could test a DNS server with:

nslookup sitetotest.com DNSserverIPtotry  

Notice that a ping is an ICMP package and DNS is an application protocol, so they live on a different layer of TCP/IP stack of protocols. A server/host could respond to a ping without having any service listening on a TCP or UDP port.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »