Hi all,
I have installed ISC BIND package, but i am unable to make it work.
This is my named.conf file:
acl corpnets { 192.168.1.0/24; };
options {
// Working directory
directory "/opt/Bind/etc";
allow-query { corpnets; };
};
// We are the master server for example.com
zone "ro.lt" {
type master;
file "ro.lt.db";
notify no;
};
and this is the zone file:
$ORIGIN ro.lt
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA QNAP-TS-231.ro.lt. admin.QNAP-TS-231.ro.lt. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
QNAP-TS-231 IN A 192.168.1.15
NS IN CNAME QNAP-TS-231
vscode998 IN A 4.16.16.5
vscode998.ro.lt IN A 4.16.16.5
I only need to resolve "vscode998.ro.lt ", but do not get it works.
Really apreciate any help
ISC BIND Issues
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: ISC BIND Issues
Just a few obvious points: The SOA record needs to be ro.lt, a NS record is alwas IS NS [fqdn]., ... try something like this for the zone file:
$ORIGIN .lt.
ro IN SOA ro.lt. admin.QNAP-TS-231.ro.lt. (
2017091501 604800 86400 2414200 604800 )
IN NS QNAP-TS-231.ro.lt.
$ORIGIN ro.it.
localhost IN A 127.0.0.1
QNAP-TS-231 IN A 192.168.1.15
vscode998 IN A 4.16.16.5
And the named.conf must have some references to the zone file, like
zone "ro.lt." {
allow-query { any; };
type master;
masters { 192.168.1.15; };
file "ro.lt.hosts";
};
$ORIGIN .lt.
ro IN SOA ro.lt. admin.QNAP-TS-231.ro.lt. (
2017091501 604800 86400 2414200 604800 )
IN NS QNAP-TS-231.ro.lt.
$ORIGIN ro.it.
localhost IN A 127.0.0.1
QNAP-TS-231 IN A 192.168.1.15
vscode998 IN A 4.16.16.5
And the named.conf must have some references to the zone file, like
zone "ro.lt." {
allow-query { any; };
type master;
masters { 192.168.1.15; };
file "ro.lt.hosts";
};