回文章列表
作者Adama.bbs@ptt.cc (So Say We All.) 看板: linux
標題Re: login速度很慢
時間批踢踢實業 (2008/04/08 Tue 16:10:45)
※ 引述《catching.bbs@kulu.twbbs.org (catching)》之銘言:
: ※ 引述《catching (catching)》之銘言:
: > 我是使用fedora core 5的
: > 之前登入的時候 速度都沒有什麼問題 一下子就登入進去了
: > 但是最近不知道怎麼回事
: > 輸入完帳號密碼以後 過很久才登入進去
: 現在純粹好奇 為什麼改dns就可以正常登入?
: 我知道linux login的時候 會反查 如果在private IP裡頭
: 執行反查 會查不到 所以會白等30~60秒
: 不過這種情況似乎不太一樣
: 請問各位大大 是什麼原因呢?

因為有許多程式會使用到hostname
如果hostname沒有對應到127.0.0.1的話,程式就會去問dns
dns要是回應很久,或者查不到 (比如說hostname不是合法註冊的)
login就要很久了...  這就是為什麼要檢查 /etc/hosts 或dns設定了

--
The 4400     ~ A Place In Time ~              [Amanda Abizaid]

So long ago, another life, I can feel your heartbeat.
It's not a dream, remember us. I can see it in your eyes.
We'll find our place in time, a place in time beyond the sun.
We'll find our place in time, a place in time to call our own.

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 140.112.102.157
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻