Is it possible to configure proxy setting through dhcp?

You can configure your DHCP server for Web Proxy Autodiscovery Protocol:

Create a PAC file and host it on a local web server. Then have your DHCP server provide the URL of the PAC file (e.g. http://mywebserver/proxy.pac) in DHCP option 252:

option auto-proxy-config code 252 = " http://mywebserver/proxy.pac";