My configuration says

Internal DNS client enabled: false

but I've hot the same problem. Opera ignores /etc/hosts configuration. I started experiencing this today, after upgrade to Opera 40

UPDATE: Enabling and disabling Opera Turbo helped.