I've edited keyword.url to my favorite search engine and disabled domain autocomplete, but Firefox still tries to connect to invalid domains when I type a single word in the address bar (like http://foo/ for foo) instead of using my search engine directly. How to fix this?

link|improve this question
feedback

4 Answers

This behavior is normal – foo may be a valid hostname in the local network or under the same domain (for example, after appending the primary suffix – home. or example.com. – or by using NetBIOS to resolve it). Even on the Internet, a single-label domain is valid – http://tk./ and the (now dead) http://to./ as examples. Therefore Firefox (and probably all other programs) will always consider one-word addresses as domain names.


You can, as a workaround, use keyword search: click the search engines drop-down menu, choose "Edit search engines", then edit your keywords.

Search engines

Another way is to add a bookmark pointing to your search engine. For example, I have keyword g with URL http://www.google.com/search?q=%s which I use daily.

Bookmark properties

link|improve this answer
Thank you for the tip of using a bookmark as a workaround. – screener Jun 3 '11 at 18:14
2  
"Therefore Firefox (and probably all other programs) will always consider one-word addresses as domain names." Chrome doesn't, which lets you use single-word searches with your preferred search engine. – DanH Jul 1 '11 at 20:58
feedback

Setting browser.fixup.alternate.enabled to false in about:config is supposed to disable domain guessing. Sadly, Firefox 5.0 still returns the failed DNS request.

link|improve this answer
feedback
up vote 0 down vote accepted

The InstantFox extesion has all advanced search features that I need.

link|improve this answer
feedback

Well, I had that problem for couple of weeks and I could not figure it out. I just noticed that when I use the computer on another network (at work) - it was fine. Clean profiles, everything default, plugins off - nothing was fixing the behavior.

Then I recall that I have changed some setting on the DNS on my home router to provide local domain names (that actually did not work as I expected).

So, when I removed that option I was able to search single words from the address bar in FF again!!!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.