Authorities have warned residents of Dunsborough in West Australia to avoid the area as a major bushfire threatens homes.