PDA

View Full Version : [ubuntu] hosts alias does not work for the firefox browser



sysabod
June 19th, 2011, 03:42 AM
Hi all:
i changed my /etc/hosts file today,no too much modifications,just add a line

119.75.218.70 www.baidu.com bd
that means i tell the my dns resolver to statically apply the 119.75.218.70 address when i try to connect to www.baidu.com and assign an alias to the baidu.com.Thus,i made a few tests,it turned out that the command
ping bd went well while the firefox browser does not know how to resolve the alias bd in the address bar.:(

please help me out,any help is appreciated!:P