Possible to redirect website dns to a specific ip address?

Is it possible to redirect traffic when resolving a website using the dns to a specific ip address instead?

For example when I type in www.example.com it'll redirect it to 1.2.3.4?

add this to /etc/config/dhcp ?
list server ‘/domain_name/dns_address’

What are you trying to achieve? Ad-blocking? pr0n-blocking?

I believe it's list address '/domain_name/1.2.3.4'

I have a device which tries to connect to www.example.com which no longer works. I can't change this. If I redirect the dns of the website to ip x.x.x.x I might be able to reconfigure this device.

You need to do it in dnsmasq.conf