Friday, 13 September 2013

CONFIGURATION WINDOWS BIND9 DNS SERVER

CONFIGURATION WINDOWS BIND9 DNS SERVER

I've node.js running an application with a vhost listening on
"example.com" on my local windows pc. A WLAN-Router is attached to that
pc. With my mobile phone I try to connect to the app (connected in the
local WLAN). I can't configure the DNS on the router that's why I tried to
install and configure BIND9.
Address | IP of my computer connected to the router
------------+--------------
example.com | 192.168.1.2
Content of c:\bind\etc\named.conf
options {
directory "c:\bind\etc\";
allow-transfer { none; };
recursion no;
listen-on {any;};
};
zone "example.com" {
type master;
file "c:\bind\etc\master\db\db.example.com";
};
key "rndc-key" {
algorithm hmac-md5;
secret "pj7p+9yRbo78//21zNnu4A==";
};
controls {
inet 192.168.1.2 port 953
allow { 192.168.1.2; } keys { "rndc-key"; };
};
Content of my zone file "c:\bind\etc\master\db\db.example.com"
$TTL 24h
@ IN SOA ns1.example.com. root.example.com. (
2013110901
10800
3600
604800
86400 )
NS ns1.example.com.
ns1 A 192.168.1.2
primary A 192.168.1.2
www CNAME primary
I don't care if the vshost is working, the only thing I try is,
nevertheless what I type into my mobile phones browser (it can be facebook
or google or anything else), I want to come out on my appfrontend, which
node.js deploys.
checkconf and checkzone worked without throwing an error. The name server
is listening on port 53.
Would be great if anybody could take a look at it and give me hint on what
I am doing wrong? Thanks

No comments:

Post a Comment