Two men on a motorbike fired several shots at a house in Salford before fleeing, Greater Manchester Police said.
Nobody is thought to have been hurt, but a door and window were damaged following the attack on the house on Prestwood Road on Thursday night.
Det Ch Insp Alistair Mallen, of Salford CID, said: "We don't believe this was a random attack and we are confident of bringing them to justice."
Extra police are patrolling the area.
The attack comes a year after a similar incident in the same part of Salford.
A police spokesman said: "We are investigating to see if there is a connection."