Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 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

share|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. –  danhersam Jul 1 '11 at 20:58
add comment

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.

share|improve this answer
add comment
up vote 2 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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