I’m trying to make an A record/DNS entry to a machine connected to our network.
I can ping the machine by IP and by hostname on the the DNS server, NS1. Though I suspect this is because i added them to /etc/hosts.
I’ve never dealt with BIND and have only used AD or online managed DNS providers so I wasn’t sure where to start.
I’m wanting to add to machines to dns with the names train1.newnetwork.lcl and train2.newnetwork.lcl.
I added the following to /etc/bind/db.newnetwork.lcl
ns1:~# cat /etc/bind/db.newnetwork.lcl
; Zone files for newnetwork.lcl
$TTL 3600
@ IN SOA ns1.newnetwork.lcl. it.mydomain.org. (
2020051501; Serial
3600 ; Refresh 5 days
1800 ; Retry 1 hr.
864000 ; Expire 10 days
172800 ) ; Minimum/default 48 hours
IN NS ns1.newnetwork.lcl.
IN NS ns2.newnetwork.lcl.
; Anything not explicitly mentioned below
ns1 IN A 192.103.195.1
train1 IN A 10.200.6.228
train2 IN A 10.200.6.227
Additionally, here’s my /etc/bind/named.conf.local
GNU nano 2.0.2
File:
/etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "newnetwork.lcl" {
type master;
file "/etc/bind/db.newnetwork.lcl.conf";
};
Lastly, here’s the output of my check:
ns1:/etc/bind# sudo named-checkzone newnetwork.lcl db.newnetwork.lcl
zone newnetwork.lcl/IN: loaded serial 2020051501
OK
I’m not where to go from here or how to troubleshoot this. Any help is appreciated.