Monday, August 20, 2012

ppp Can ping IP address but not the hostname/domain from different linux box

DNS problem.
/etc/resolv.conf
tovantran@Satellite:/$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

nameserver xx.xx.xx.133
nameserver xx.xx.xx.128

$ cat /etc/ppp/resolv.conf
nameserver 64.71.xxx.xxx
nameserver 64.71.xxx.xxx
these are the nameserver of ISP provides.
Aug 20 15:28:51 Satellite pppd[23211]: pppd 2.4.5 started by root, uid 0
Aug 20 15:28:51 Satellite pppd[23211]: Using interface ppp0
Aug 20 15:28:51 Satellite pppd[23211]: Connect: ppp0 <--> /dev/ttyACM0
Aug 20 15:28:55 Satellite pppd[23211]: replacing old default route to eth0 [10.186.50.1]
Aug 20 15:28:55 Satellite pppd[23211]: local  IP address 25.48.xxx.xxx
Aug 20 15:28:55 Satellite pppd[23211]: remote IP address 25.48.xxx.xxx
Aug 20 15:28:55 Satellite pppd[23211]: primary   DNS address 64.71.xxx.xxx
Aug 20 15:28:55 Satellite pppd[23211]: secondary DNS address 64.71.xxx.xxx


after ppp connection the nameservers are copied from
/etc/ppp/resolv.conf to /etc/resolv.conf
make sure it copies over.

tovantran@Satellite:/$ cat /etc/resolv.conf

nameserver xx.xx.xx.133
nameserver xx.xx.xx.128
nameserver 64.71.xxx.xxx (DNS of ISP) primary
nameserver 64.71.xxx.yyy
 DNS is found:
$ cat tcpdump.txt
No.     Time        Source                Destination           Protocol Length Info

      6 17.288106   25.48.13.189          64.71.xxx.xxx         DNS      71     Standard query A yahoo.com
      7 17.831145   64.71.xxx.xxx         25.48.13.189          DNS      357    Standard query response A 98.138.253.109 A 98.139.183.24 A 72.30.38.140
      8 17.831542   25.48.13.189          98.138.253.109        ICMP     100    Echo (ping) request  id=0x7a79, seq=1/256, ttl=64
     

No comments:

Post a Comment