How to add a record

Hello!

I install unbound by apt on the Ubuntu 18.04, now I want to add a record to let the www.example.com point to 192.168.1.123.

Could you please tell me how should I write the conf? Thanks.

Make.

unbound.conf:

include: “/usr/local/etc/unbound/unbound_local”

unbound_local:

locally served zones can be configured for the machines on the LAN.

local-zone: “example.com.” static

local-data: “www.example.com. IN A 192.168.1.123”
local-data-ptr: “192.168.1.123 www.example.com

Something like this.