Getting load balancer to work for www and non www

  1. do the load balancer should set up without the www prefix?
  2. after setting up do I need to remove all the related dns records? like I have a dns record like
    “A example.com 1.1.1.1” I need to remove it after setting up the balancer?

the problem I get is that when entering the site without the www prefix it doesn’t go through the LB and I looking for a solution

The LB entry will take precedence over the DNS entry. You could delete the DNS entry, but it should not be necessary.

How are you determining the trafifc isn’t going through the LB?