I had that same problem with the pipes making noise when flushing the toilet and when I had a plumber come out he found that the vent near my toilet that goes up to the roof had gotten clogged somehow.
After he cleaned the drain vent out the noise went away.