Sample Header Ad - 728x90

How to setup a bind9 server for a private home network

0 votes
0 answers
976 views
My end goal is to setup a DNS server to use in the network 10.0.0.0/24, the network consists of a TP-Link home switch and a workstation running runtu(ubuntu)linux and a laptop connect to that switch, the DNS server should be used to resolve ip address in the network 10.0.0.0/24 only the server 10.0.0.1 runs ssh,dhcp and hopefully dns I installed bind9 and created the following setup /etc/bind/named
OPTIONS="-4 -u bind"
/etc/bind/named.conf.local
zone "workstation.local" {
	type master;
	file "/etc/bind/forward.workstation.local";
};

zone "10.0.0.in-addr.arpa" {
	type master;
	file "/etc/bind/reverse.workstation.local";	# 10.0.0.0/24
};
/etc/bind/forward.workstation.local
$TTL	604800
@	IN	SOA	localhost. root.localhost. (
			      1		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL
;
@	IN	NS	ns1.workstation.localhost.
@	IN	A	10.0.0.1
/etc/bind/reverse.workstation.local
$TTL	604800
@	IN	SOA	localhost. root.localhost. (
			      1		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL
;
@	IN	NS	ns1.workstation.local.
1	IN	PTR	ns1.workstation.local.
when trying the command host workstation.local I get the output
workstation.local not found: 2(SERVFAIL)
How to properly setup the dns server so that the laptop can connect to the ip 10.0.0.1 using the workstation.local This is my first time setting up a dns server in linux, I could use all the help possible Update I tried to use home instead of local but I still can't reach the server from the laptop
Asked by misfit (1 rep)
Mar 17, 2023, 05:45 PM
Last activity: Mar 25, 2023, 01:54 PM