Here is a fretboard diagram of all the notes on the guitar. Play the notes on each string from the open notes to the 12th fret. The note on the 12th fret is one octave higher than the open note e.g., the open 6th string is an E note and the note on the 12th fret of the 6th string is also an E note, but is one octave higher.
A good way to learn all the notes is to take one string at a time. Call the "in between" notes sharps as you progress up the fretboard and flats as you go back down. The following diagram shows notes on the 4th string only.
To practice naming the notes, slide your first finger up one fret at a time and say the name of each note out loud as you go. When you reach the 12th fret where the notes begin to repeat, move back down one fret at a time. You can use any finger to do this exercise, it is the note names that are important, not the fingering.
The dots on your guitar are good points of reference. You can use them to help the memorizing process.
Once you are confident you know the names of the notes along a particular string, pick the name of any note at random and find it on that string as quickly as possible. When this becomes easy, move on to the next string.
Another useful exercise is to find the same note on every string, remembering that a note usually appears twice on each string unless it is at the 11th fret.
Finally, name and play the notes across each fret. Once again use sharps as you go higher in pitch and flats as you go back down.