LINUX.ORG.RU

Проблема с DNS

 , , ,


0

0

Лог запуска

$ sudo wvdial
Password:
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT = 1,"IP","internet"
AT+CGDCONT = 1,"IP","internet"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Sep  2 17:19:56 2012
--> Pid of pppd: 2455
--> Using interface ppp0
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> pppd: �[7f]
--> local  IP address 10.218.176.106
--> pppd: �[7f]
--> remote IP address 10.64.64.64
--> pppd: �[7f]
--> primary   DNS address 10.163.182.8
--> pppd: �[7f]
--> secondary DNS address 10.163.182.11
--> pppd: �[7f]
После запуска
$ ifconfig                                            
eth0      Link encap:Ethernet  HWaddr 00:24:54:ae:1f:a2  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:480 errors:0 dropped:0 overruns:0 frame:0
          TX packets:480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:38080 (37.1 KiB)  TX bytes:38080 (37.1 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.218.176.106  P-t-P:10.64.64.64  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:130 (130.0 B)  TX bytes:181 (181.0 B)

wlan0     Link encap:Ethernet  HWaddr c4:46:19:82:03:71  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[michael@darkstar ~]$ ping -I ppp0 google.com
ping: unknown host google.com
[michael@darkstar ~]$ ping -I ppp0 yandex.ru 
ping: unknown host yandex.ru
[michael@darkstar ~]$ ping -I ppp0 8.8.8.8  
PING 8.8.8.8 (8.8.8.8) from 10.218.176.106 ppp0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=42 time=1560 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=41 time=561 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=42 time=1085 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=41 time=126 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=42 time=135 ms
64 bytes from 8.8.8.8: icmp_req=6 ttl=42 time=124 ms
64 bytes from 8.8.8.8: icmp_req=7 ttl=42 time=123 ms
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6003ms
rtt min/avg/max/mdev = 123.013/530.788/1560.797/537.422 ms, pipe 2

[michael@darkstar ~]$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=41 time=684 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=42 time=260 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=41 time=261 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=41 time=261 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=42 time=240 ms
64 bytes from 8.8.8.8: icmp_req=6 ttl=42 time=240 ms
64 bytes from 8.8.8.8: icmp_req=7 ttl=42 time=238 ms
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6003ms
rtt min/avg/max/mdev = 238.129/312.581/684.848/152.304 ms

Конфиг

[Dialer Defaults]
Phone = *99#
Username = internet
Password = internet
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT = 1,"IP","internet"
ISDN = 0
Modem Type = Analog Modem
Auto DNS = on

Есть идеи?

Сейчас попробуй выставить Auto DNS = off и вписать сервер 8.8.8.8 в /etc/resolv.conf но это даже если решит, но не объяснит проблему.

Deleted

После запуска wvdial провайдерские DNS-сервера (10.163.182.8 и 10.163.182.11) попадают в resolv.conf? А они пингуются вообще? Что говорит про них nslookup?

Deleted
()

Проблему решил так:

Выставил Auto DNS = off в конфиге /etc/wvdial.conf

И сделал симлинк /etc/resolv.conf на /etc/ppp/resolv.conf

Deleted
()
5 мая 2014 г.

На генту dhcpcd перезатирает resolv.conf

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.