It can be difficult to tell the difference between a bacterial and viral infection. This is a "chicken and egg" scenario, because bacterial infections respond to antibiotics whereas viral infections don't. Your vet will have an idea which is which from the dog's symptoms, and in some cases, may even swab the area to check if bacteria are present, before deciding if it's a bacterial infection.