- install requirements
- yum groupinstall "Development Tools"
- yum install openssl-devel
- yum install expat-devel
- build
- ldns
- wget http://www.nlnetlabs.nl/downloads/ldns/ldns-1.6.16.tar.gz
- tar zxvf ldns-1.6.16.tar.gz
- cd ldns-1.6.16/
- ./configure --disable-gost --disable-ecdsa
- make
- make install
- unbound
- wget http://unbound.net/downloads/unbound-latest.tar.gz
- tar zxvf unbound-latest.tar.gz
- cd unbound-1.4.20/
- ./configure --disable-gost --disable-ecdsa
- make
- make install
- add libs to system lib path
- vi /etc/ld.so.conf.d/ldnsandunbound.conf
- add this one line
- /usr/local/lib
- sudo ldconfig
- add unbound user
- adduser --system unbound
- tweak config
- vi /usr/local/etc/unbound/unbound.conf
- see simple sample below
- run
- unbound
- check
- lsof -nP -i :53
- stop
- pkill unbound
- restart
- unbound
server:
verbosity: 1
interface: 0.0.0.0
access-control: 10.0.0.0/16 allow
forward-zone:
name: "my-vpc.internal"
forward-addr: 252.252.199.199
forward-first: no
No comments:
Post a Comment
Note: only a member of this blog may post a comment.