Hi,
How to set config in /etc/unbound/unbound.conf based on this /etc/named.conf?
In /etc/named.conf below, how to set the similar config in /etc/unbound/unbound.conf?
Because I have tried the following in /etc/unbound/unbound.conf:
That's always syntax error.
Also in /etc/namedb/abc.com (a zone file). This "abc.com" also act as Name Server for the other domain.
I've looked up https://www.unbound.net/documentation/unbound.conf.html. It seems like there's no example on their page. Please help a little bit.
Notes:
1) BIND and Unbound run on different Server. I've try to set new Server to run DNS with Unbound. And have no idea how to reconfig it.
2) IP 202.xxx.xxx.xxx is main and for NS1, 202.xxx.xxx.xx1 is for NS2 and 202.xxx.xxx.xxx2 is for SMTP.
3) The line "localhost IN A 202.xxx.xxx.xxx" I'm not sure it's correct or not. Cause my intention is just PTR localhost to map IP 202.xxx.xxx.xxx only.
Thanks.
How to set config in /etc/unbound/unbound.conf based on this /etc/named.conf?
In /etc/named.conf below, how to set the similar config in /etc/unbound/unbound.conf?
Code:
zone "abc.com" {
type master;
file "/etc/namedb/abc.com";
allow-transfer {202.xxx.xxx.xx0;};
};
Code:
local-data: "ns1.abc.com A 202.xxx.xxx.xxx"
local-data: "ns1 A 202.xxx.xxx.xxx"
local-data: "ns2 A 202.xxx.xxx.xx1"
local-data: "www CNAME abc.com"
local-data: "ftp CNAME abc.com"
local-data-ptr: "202.xxx.xxx.xxx ns1.abc.com"
local-data-ptr: "202.xxx.xxx.xx1 ns2.abc.com"
Also in /etc/namedb/abc.com (a zone file). This "abc.com" also act as Name Server for the other domain.
Code:
TTL 3600
@ IN SOA ns1.abc.com. root.abc.com.(
2015407005; Serial 2015407005 since 2015-01-29 12:49AM
10800; Refresh
3600; Retry
604800; Expire
3600); Minimum
;DNS Server
abc.com. IN NS ns1.abc.com.
;Machine names
localhost IN A 202.xxx.xxx.xxx
ns1 IN A 202.xxx.xxx.xxx
mail IN A 202.xxx.xxx.xxx
abc.com. IN A 202.xxx.xxx.xxx
mailout.abc.com. IN A 202.xxx.xxx.xx2
;Aliases
www IN CNAME abc.com.
ftp IN CNAME abc.com.
;MX record
@ IN MX 10 mail.abc.com.
@ IN TXT "v=spf1 a mx"
I've looked up https://www.unbound.net/documentation/unbound.conf.html. It seems like there's no example on their page. Please help a little bit.
Notes:
1) BIND and Unbound run on different Server. I've try to set new Server to run DNS with Unbound. And have no idea how to reconfig it.
2) IP 202.xxx.xxx.xxx is main and for NS1, 202.xxx.xxx.xx1 is for NS2 and 202.xxx.xxx.xxx2 is for SMTP.
3) The line "localhost IN A 202.xxx.xxx.xxx" I'm not sure it's correct or not. Cause my intention is just PTR localhost to map IP 202.xxx.xxx.xxx only.
Thanks.
Last edited by a moderator: