Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The usual format for Unbound forward-zone is

forward-zone:
name: "imap.gmail.com"
forward-addr: 8.8.8.8 #googleDNS
forward-addr: 8.8.4.4 #googleDNS

for example. Is it possible to add multiple sites in a list to the `name' field? I've tried comma separation but doesn't seem to work, e.g. something perhaps like:

forward-zone:
name: "site1.com; site2.com"
forward-addr: 8.8.8.8 #googleDNS
forward-addr: 8.8.4.4 #googleDNS

perhaps? If so what is the correct format for the list of sites? I just want to save some space in the `unbound.conf' file.

share|improve this question
up vote 1 down vote accepted

No. If you want to have multiple forward zones, you have to define each one individually, no matter whether the forwarders are the same or not for each one of them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.