[Comm] Re: ÐÒÏÂÌÅÍÁ: DNS && pppoe

Aleksandr Blokhin =?iso-8859-1?q?sass_=CE=C1_altlinux=2Eru?=
÷Ó äÅË 11 21:33:22 MSK 2005


Denis Kirienko wrote:

> Ivan wrote:
>
>> äÉÓÔÒÉÂÕÔÉ× Compact 3.0RC10 ...
>> ×ÓÅ ÓÔÏÉÔ ÐÏ ÕÍÏÌÞÁÎÉÀ
>> ÐÒÉ ÕÓÔÁÎÏ×ËÅ ÉÎÔÅÒÆÅÓ eth0 ( Ó ÓÅÔÅ×ÏÊ ËÁÒÔÏÊ ) ÎÅ ÎÁÓÔÒÁÉ×ÁÌÓÑ, Ô Å 
>> ifconfig ÐÏËÁÚÙ×ÁÅÔ ÔÏÌØËÏ lo ...
>> ÐÏÓÌÅ ÚÁÐÕÓËÁ ÓËÒÉÐÔÁ pppoe-setup ( ÉÌÉ adsl-setup - ÔÏÞÎÏ ÎÅ ÐÏÍÎÀ ) 
>> É ××ÏÄÁ ÐÁÒÏÌÑ ÌÏÇÉÎÁ É ÕËÁÚÁÎÉÑ ÔÉÐÁ ×ÙÄÁ×ÁÅÍÏÇÏ DNS ÓÅÒ×ÅÒÏÍ
>> ÓÏÅÄÅÎÅÎÉÅ pppoe ÎÁÓÔÒÏÅÎÏ ..
>> ðÒÉ ÚÁÐÕÓËÅ pppoe-start ( adsl-start ) ÓÏÏÔ×.. ÓÏÚÄÁÅÔÓÑ ÓÏÅÄÅÎÅÎÉÑ 
>> eth0, ppp0 Ó ÐÒÉÓ×ÏÅÎÙÍ ip ÁÄÒÅÓÏÍ , × /etc/ppp/resolv.conf Á×ÔÏÍÁÔÏÍ 
>> ÐÒÏÐÉÓÙ×ÁÀÔÓÑ 2 nameserverÁ, /etc/resolv.conf - ÌÉÎË ÎÁ 
>> /etc/ppp/resolv.conf ...
>> ÷ÓÅ ÎÏÒÍÁÌØÎÏ ÐÉÎÇÕÅÔÓÑ ÐÏ ip ÁÄÒÅÓÁÍ, Á ×ÏÔ ÐÒÉ ÕËÁÚÁÎÉÉ ping www.ru 
>> - ÐÉÛÅÔ "ÎÅÉÚ×ÅÓÎÙÊ ÈÏÓÔ" ...
>> ô Å ËÁËÁÑ ÐÒÏÂÌÅÍÁ Ó ÕËÁÚÁÎÉÅÍ DNS ËÁË Ñ ÐÏÎÉÍÁÀ ÇÄÅ ÓÍÏÔÒÅÔØ ?
>> ÐÒÏÂÏ×ÁÌ ÐÏÄÓÕÎÕÔØ pppoe.conf Ó ÄÒÕÇÏÇÏ ËÏÍÐÁ Ó ÄÒÕÇÉÍ ÄÉÓÔÒÉÂÕÔÉ×ÏÍ 
>> ( ÇÄÅ ×ÓÅ ÒÁÂÏÔÁÅÔ ) - ÔÁ ÖÅ ÓÁÍÁÑ ÐÒÏÂÌÅÍÁ ...
>
>
> ðÏÄÔ×ÅÒÖÄÁÀ ÎÁÌÉÞÉÅ ÜÔÏÊ ÐÒÏÂÌÅÍÙ, ÐÒÉÞÅÍ ÏÞÅÎØ ÄÁ×ÎÏ. óÅÊÞÁÓ ÎÁÂÌÀÄÁÀ 
> ÅÅ ÎÁ pppoe-ÓËÒÉÐÔÁÈ, ÒÁÎØÛÅ ×ÓÅ ÂÙÌÏ ÔÁË ÖÅ ÎÁ pptp-ÓËÒÉÐÔÁÈ.
>
> ðÒÏÂÌÅÍÁ: ÐÒÉ ÐÏÄËÌÀÞÅÎÉÉ ÞÅÒÅÚ ppp ping ÎÅ ÕÍÅÅÔ ÒÅÓÏÌØ×ÉÔØ ÉÍÅÎÁ 
> ÈÏÓÔÏ×.
> ðÒÏÂÌÅÍÁ ÎÅ × update_chrooted (ÏÎÏ ÓÒÁÂÁÔÙ×ÁÅÔ ÎÏÒÍÁÌØÎÏ, ËÏÍÁÎÄÁ 
> resolve ÒÁÂÏÔÁÅÔ ÎÏÒÍÁÌØÎÏ), ÎÅ × ÐÒÁ×ÁÈ (ÏÔ ÒÕÔÁ - ÔÏ ÖÅ ÓÁÍÏÅ), ÎÅ × 
> resolve (ÏÐÑÔØ-ÔÁËÉ, resolve ÒÁÂÏÔÁÅÔ ÎÏÒÍÁÌØÎÏ). ðÏÈÏÖÅ, ÞÔÏ ÐÒÏÂÌÅÍÁ 
> × ping, × ÔÏÍ, ËÁË ping ×ÙÚÙ×ÁÅÔ gethostbyname.
>
> óÅÊÞÁÓ ÐÅÒÅÓÏÂÒÁÌ ping Ó ËÌÀÞÏÍ -g, ÚÁÐÕÓÔÉÌ ÐÏÄ gdb. ïËÁÚÁÌÏÓØ, ÞÔÏ 
> ÐÒÉ ×ÙÚÏ×Å  gethostbyname("www.ya.ru") ÉÚ ping ×ÏÚ×ÒÁÝÁÅÔÓÑ 0, ÐÒÉ 
> ÜÔÏÍ h_errno==2, ÞÔÏ ÏÚÎÁÞÁÅÔ
> #define TRY_AGAIN       2       /* Non-Authoritative Host not found,
>                                    or SERVERFAIL.  */
>
> îÁÐÉÓÁÌ ÐÒÏÓÔÅÊÛÕÀ ÐÒÏÇÒÁÍÍËÕ, ËÏÔÏÒÁÑ ×ÙÚÙ×ÁÅÔ 
> gethostbyname("www.ya.ru"), ÏÎÁ ÒÁÂÏÔÁÅÔ ÎÏÒÍÁÌØÎÏ. ÷ ÞÅÍ ÐÒÏÂÌÅÍÁ - 
> ÕÍÁ ÎÅ ÐÒÉÌÏÖÕ.


ping ÓÉÄÉÔ × chroot (ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÒÁÎØÛÅ ÔÁË ÂÙÌÏ). íÏÖÅÔ ÂÙÔØ × ÜÔÏÍ 
ÐÒÏÂÌÅÍÁ?

-- 
Best regards
AB
--
		... In nomine Altli, et Ctrli, et Spititus Deli, Reset!




ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ community