Em dnsmasq , use a opção address
.
-A, --address=/<domain>[/<domain>...]/[<ipaddr>]
Specify an IP address to return for any host in the given domains. Queries in the domains are never forwarded and always replied to with the specified IP address which may be IPv4 or IPv6. To give both IPv4 and IPv6 addresses for a domain, use repeated -A flags.
Por exemplo:
address=/example.com/www.example.com/192.168.1.42
Em Não consolidado , use as opções local-zone
e local-data
. Por exemplo:
server:
local-data: "example.com. A 192.168.1.42"
local-data: "www.example.com. A 192.168.1.42"