Skip to content

Instantly share code, notes, and snippets.

@kbruner

kbruner/commands + output Secret

Last active Dec 26, 2020
Embed
What would you like to do?
~ # mkdir -p /var/nsd/var/db/nsd /var/nsd/var/run /var/nsd/var/log /var/nsd/tmp
~ # chown -R nsd:nsd /var/nsd
~ # sysrc nsd_enable="YES"
nsd_enable: -> YES
~ # sysrc nsd_config="/var/nsd/nsd.conf"
nsd_config: -> /var/nsd/nsd.conf
~ # cd /var/nsd
/var/nsd # wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/nsd.conf
/var/nsd # wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/zone.10
/var/nsd # wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/zone.k3s.local
/var/nsd # nsd-control-setup -d /var/nsd
setup in directory /var/nsd
Generating RSA private key, 3072 bit long modulus (2 primes)
.................++++
.............................................................................................++++
e is 65537 (0x010001)
Generating RSA private key, 3072 bit long modulus (2 primes)
.++++
...................++++
e is 65537 (0x010001)
Signature ok
subject=CN = nsd-control
Getting CA Private Key
removing artifacts
Setup success. Certificates created. Enable in nsd.conf file to use
/var/nsd # nsd-control -c /var/nsd/nsd.conf start
[2020-12-24 23:28:08.976] nsd[35621]: notice: nsd starting (NSD 4.3.4)
[2020-12-24 23:28:08.976] nsd[35621]: notice: listen on ip-address 127.0.0.1@53530 (udp) with server(s): *
[2020-12-24 23:28:08.976] nsd[35621]: notice: listen on ip-address 127.0.0.1@53530 (tcp) with server(s): *
mkdir -p /var/nsd/var/db/nsd /var/nsd/var/run /var/nsd/var/log /var/nsd/tmp
chown -R nsd:nsd /var/nsd
sysrc nsd_enable="YES"
sysrc nsd_config="/var/nsd/nsd.conf"
cd /var/nsd
wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/nsd.conf
wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/zone.10
wget -q https://raw.githubusercontent.com/kbruner/freebernetes/main/k3s/dns/nsd/zone.k3s.local
nsd-control-setup -d /var/nsd
nsd-control -c /var/nsd/nsd.conf start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment