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
Host 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
/etc/resolv.conf
) instead of your server.local
tohome
but i still can't reach the server