the final phase, I noticed that dnsmasq and system resolve was listening to ports I needed to
use
netstat -tulpn
so before I nix both of this services I install a basic dhcp server
pacman -Syu dhcpd
pacman -Syu cronie ( more on this later…reference cron - ArchWiki)
and disable both services by
systemctl disable systemd-resolved
systemctl disable dnsmasq
systemctl mask systemd-resolved (not let it start at boot)
systemctl mask dnsmasq
by doing this the internal resolver gets ax and the dhcp,dns, provided by dnsmasq gets ax
now my dhcp server becomes dhcpd after locating and editing the file
nano /etc/dhcpd.conf with
option domain-name-servers 10.0.0.1;
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.150 10.0.0.250;
}
(yea the whole content of the file gets erase with just whats above )
in order to start this service at boot
cp /usr/lib/systemd/system/dhcpd4.service /etc/systemd/system/dhcpd4@br0.service
Then edit the ExecStart line to include the interface:
#nano /etc/systemd/system/dhcpd4@br0.service
… [Service] … ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf -pf /run/dhcpd4/dhcpd.pid %I
(dhcpd - ArchWiki) reference at the bottom of the page
now I had dhcp running again , next was having my node start at boot , I did this by running cron
EDITOR=nano crontab -e
@reboot $HOME/hsd/bin/hsd --ns-port 5300 --rs-host 0.0.0.0 --rs-port 53
enter then exit
systemctl enable cronie.service
check your hard work by
netstat -tulpn
dig @127.0.0.1 -p 5300 org +dnssec
1 Like