Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Firefox slow start trying to resolve local hostname

  • 2 답장
  • 12 이 문제를 만남
  • 3 보기
  • 최종 답변자: 0x18h

more options

When starting Firefox it tries to resolve my hostname, but since it is not resolvable from everywhere it takes a lot of time before it actually gives up (5 times the lookup timeout). Having a record in hosts file does not solve it. Is there a way to disable attempts to resolve my hostname and just use the corresponding ip from hosts file?

When starting Firefox it tries to resolve my hostname, but since it is not resolvable from everywhere it takes a lot of time before it actually gives up (5 times the lookup timeout). Having a record in hosts file does not solve it. Is there a way to disable attempts to resolve my hostname and just use the corresponding ip from hosts file?

모든 댓글 (2)

more options

I thought the browser would use the Hosts file first? If you do not have DNS service, there are free DNS servers available. Here is a list:

http://pcsupport.about.com/od/tipstricks/a/free-public-dns-servers.htm

more options

Hi finitarry,

thanks for your attention. The problem is not with resolving sites or resolver in general - there everything is ok and hosts file is used as expected.

The thing is on startup before actually launching the gui. It feels like the lookup is somehow hardcoded there - strace shows that it opens a socket with nonblock option set, connects it to my DNS, does sendto for query, and then timeouts waiting for readable sockets poll([{fd=11, events=POLLIN}], 1, 5000) = 0 (Timeout) and repeats it several times.

So though the socket is set non blocking that part of code can actually block in poll(), and I guess it would be nice if it could perform this lookup in parallel with starting the gui.

The server that used to hold my NS records is temporarily down, and it is natural for queries to last forever till timeout, but hosts file always used to save it.

So I just wonder if it is a bug or a feature.