Hi
I am just 2 miles outside Dunfermline.
I think it will depend on what type of house you like! We have the Eastern Expansion which is all new houses by Barrat, Wimpey etc. There are brand new schools there, together with a Tesco, pub/restaurant and various other little shops. There have been some issues with numbers of children getting into schools there recently but that is something you can look at if new type houses are your thing.
If not, you have mining villages on the outskirts (one of which I am). If you have a look at www.espc.co.uk and look up places such as Gowkhall, Carnock, Comrie, Saline, Charlestown, Cairneyhill, Culross and Limekilns these are all lovely places with a variety of shops, community centres etc.
I don't know much about schools there though.
If you can give me an indication of what style of house you are looking at it would be easier.
If you do like the new style ones search for Dover Heights, Fergusson Road, Dover Drive and that will give you an idea of the types of new built available. There are thousands of new builds at the Eastern Expansion though so it may not be your cup of tea.