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

Denis Kirienko =?iso-8859-1?q?Denis=2EKirienko_=CE=C1_gmail=2Ecom?=
÷Ó äÅË 11 22:00:27 MSK 2005


Aleksandr Blokhin wrote:

>> ðÒÏÂÌÅÍÁ: ÐÒÉ ÐÏÄËÌÀÞÅÎÉÉ ÞÅÒÅÚ 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.  */
> 
> ping ÓÉÄÉÔ × chroot (ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÒÁÎØÛÅ ÔÁË ÂÙÌÏ). íÏÖÅÔ ÂÙÔØ × ÜÔÏÍ 
> ÐÒÏÂÌÅÍÁ?

äÁ, ÓÅÊÞÁÓ ÐÅÒÅÓÏÂÒÁÌ ping, ÚÁËÏÍÍÅÎÔÉÒÏ×Á× ×ÙÚÏ×Ï×Ù chroot É ÏÎ ÎÁÞÁÌ 
ÒÁÂÏÔÁÔØ ÎÏÒÍÁÌØÎÏ.

ëÁËÏÊ ÎÁÉÌÕÞÛÉÊ ×ÙÈÏÄ ÉÚ ÜÔÏÇÏ ÐÏÌÏÖÅÎÉÑ? íÏÖÅÔ ÂÙÔØ, ÅÍÕ × chroot 
ËÁËÏÊ-ÔÏ ÂÉÂÌÉÏÔÅËÉ ÎÅ È×ÁÔÁÅÔ, ÎÁÄÏ ÅÅ × /var/resolv ÚÁÓÕÎÕÔØ?

--
äÅÎÉÓ




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