Revision [4121]

Last edited on 2011-09-06 23:21:21 by KenFong
Additions:
[[DNSnsupdate nsupdate]]
-----


Revision [3531]

Edited on 2009-09-30 07:53:35 by WikiAdmin
Additions:
It's easy.
ptr-record=254.13.168.192.in-addr.arpa,"gw.comme.ca"
ptr-record=80.13.168.192.in-addr.arpa,"mynas.comme.ca"
Deletions:
It's easy. The only problem is it doesn't seem to support PTR.


Revision [3530]

Edited on 2009-09-30 07:49:59 by WikiAdmin
Additions:
===dnsmasq===
It's easy. The only problem is it doesn't seem to support PTR.
%%
bogus-priv
no-poll
address=/gw.comme.ca/192.168.13.254
address=/mynas.comme.ca/192.168.13.80
server=210.0.128.242@eth0
server=210.0.255.216@eth0
all-servers
no-resolv
interface=lo
interface=eth0
domain=comme.ca,192.168.13.0/24
cache-size=256
%%


Revision [1721]

Edited on 2008-05-15 02:49:14 by WikiAdmin
Additions:
Did you know - a domain name consists of a hostname, a domain name, and a top-level-domain (AKA TLD). For instance, in www.example.com, **www** is the hostname, **example** is the domain name, and **com** is the tld. **www.example.com** is known as the fully-qualified-domain-name (FQDN)


Revision [1680]

Edited on 2008-04-19 08:05:38 by WikiAdmin
Additions:
[[DNSdjbdns djbdns]]


Revision [1451]

Edited on 2008-03-04 06:52:55 by WikiAdmin
Additions:
{{parent page="Network"}}
===[[DNS DNS]]===
Deletions:
{{parent page="Networking"}}
==[[DNS DNS]]==


Revision [1448]

Edited on 2008-03-04 06:51:47 by WikiAdmin
Additions:
{{parent page="Networking"}}
==[[DNS DNS]]==
[[DNSQueries DNS Queries]]
[[Bind910min Bind9 In 10 minutes]]
[[DNSZone DNS zone file]]
[[NetworkPowerDNS PowerDNS - a DNS server designed to work with a database backend]]
[[DNSSubdomainDelegate Delegating sub-domains]]
Deletions:
{{parent page="GeneralUnix"}}


Revision [1444]

Edited on 2008-03-04 06:49:21 by WikiAdmin
Deletions:
==[[DNSSubdomainDelegate Delegating sub-domains]]==

===Querying remote DNS server version===
Does not work on all name servers.
%%(bash)
dig -t txt -c chaos VERSION.BIND @ns1.somedns.com
%%


Revision [1442]

Edited on 2008-03-04 06:48:14 by WikiAdmin
Deletions:
==Generate a rndc key==
rndc-confgen -b 512 | grep -m 1 "secret" | cut -d '"' -f 2
== Creating a local domain ==
File path might be a little different on different platforms. The following is based on FreeBSD 6 and BIND 9.
Edit /etc/namedb/named.conf and at least include the followings:
// Bind9 configuration file
// Below are required for Win32 bind
key "rndc-key" {
algorithm hmac-md5;
secret "";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
acl mynets { 192.168.13.0/24; 127.0.0.0/8; };
// Common to Win32 / UNIX
options {
directory "c:\\windows\\system32\\dns\\etc"; // Working directory
// directory "/etc"; // on linux chroot environment
listen-on { 192.168.13.10; 127.0.0.1; 10.0.0.1; };
allow-query { mynets; };
forwarders { // forward to external servers
192.168.13.254;
};
};
view "trusted" {
// allow recursive queries to local networks only
match-clients { mynets; };
recursion yes;

zone "comme.ca" IN {
type master;
file "comme.ca.zone";
allow-transfer { mynets;};
};

zone "13.168.192.in-addr.arpa" IN {
type master;
file "13.168.192.rev";
allow-transfer { mynets;};
};
};
view "untrusted" {
match-clients {"any";};
recursion no;

// zone for caching
zone "." in {
type hint;
file "root.hints";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "0.0.127.rev";
};
==Create rndc.key for controlling named==
key "rndckey" {
algorithm hmac-md5;
secret "";
};
== Create forward & reversed zone==
My example is /etc/namedb/master/comme.ca.zone
%%(text;comme.ca.zone)
$ORIGIN comme.ca
$TTL 3600
comme.ca. IN SOA ns1.comme.ca. hostmaster.comme.ca. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
; dns servers
IN NS ns1.comme.ca.
; root record
IN A 192.168.13.30
; records
ns1.comme.ca. IN A 192.168.13.30
free.comme.ca. IN A 192.168.13.30
ism.comme.ca. IN A 192.168.13.10
homme.comme.ca. IN A 192.168.13.20
gw.comme.ca. IN A 192.168.13.254
%%(text;13.168.192.rev)
$TTL 3600 ;
$ORIGIN 13.168.192.IN-ADDR.ARPA.
@ 1D IN SOA ns1.comme.ca. nsmaster.comme.ca. (
2007050301 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns1.comme.ca.
; server host definitions
10 IN PTR ism.comme.ca.
20 IN PTR homme.comme.ca.
30 IN PTR vm.comme.ca.
254 IN PTR gw.comme.ca.
%%(text;localhost.rev)
$TTL 86400 ;
; could use $ORIGIN 0.0.127.IN-ADDR.ARPA.
@ IN SOA localhost. root.localhost. (
2007050300 ; Serial
3h ; Refresh
15 ; Retry
1w ; Expire
3h ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
%%(text;0.0.127.rev)
$TTL 3D
@ IN SOA ns.comme.ca. hostmaster.comme.ca. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns1.comme.ca.
1 PTR localhost.
%%(text;root.hints)
. 6D IN NS A.ROOT-SERVERS.NET.
. 6D IN NS B.ROOT-SERVERS.NET.
. 6D IN NS C.ROOT-SERVERS.NET.
. 6D IN NS D.ROOT-SERVERS.NET.
. 6D IN NS E.ROOT-SERVERS.NET.
. 6D IN NS F.ROOT-SERVERS.NET.
. 6D IN NS G.ROOT-SERVERS.NET.
. 6D IN NS H.ROOT-SERVERS.NET.
. 6D IN NS I.ROOT-SERVERS.NET.
. 6D IN NS J.ROOT-SERVERS.NET.
. 6D IN NS K.ROOT-SERVERS.NET.
. 6D IN NS L.ROOT-SERVERS.NET.
. 6D IN NS M.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 6D IN A 198.41.0.4
B.ROOT-SERVERS.NET. 6D IN A 192.228.79.201
C.ROOT-SERVERS.NET. 6D IN A 192.33.4.12
D.ROOT-SERVERS.NET. 6D IN A 128.8.10.90
E.ROOT-SERVERS.NET. 6D IN A 192.203.230.10
F.ROOT-SERVERS.NET. 6D IN A 192.5.5.241
G.ROOT-SERVERS.NET. 6D IN A 192.112.36.4
H.ROOT-SERVERS.NET. 6D IN A 128.63.2.53
I.ROOT-SERVERS.NET. 6D IN A 192.36.148.17
J.ROOT-SERVERS.NET. 6D IN A 192.58.128.30
K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129
L.ROOT-SERVERS.NET. 6D IN A 198.32.64.12
M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33
Start named by /etc/rc.d/named forcestart | restart


Revision [1081]

Edited on 2007-10-22 06:23:24 by WikiAdmin
Additions:

zone "comme.ca" IN {
type master;
file "comme.ca.zone";
allow-transfer { mynets;};
};

zone "13.168.192.in-addr.arpa" IN {
type master;
file "13.168.192.rev";
allow-transfer { mynets;};
};
view "untrusted" {
match-clients {"any";};
recursion no;
Deletions:
recursion no;
// my domain is comme.ca
zone "comme.ca" {
file "master/comme.ca";
zone "13.168.192.in-addr.arpa" {
type master;
file "master/13.168.192.rev";
}


Revision [1033]

Edited on 2007-10-16 03:08:02 by WikiAdmin
Additions:
recursion no;
view "trusted" {
// allow recursive queries to local networks only
match-clients { mynets; };
recursion yes;
Deletions:
// recursion no; // this parameter controls whether named should resolve non local domains


Revision [827]

Edited on 2007-07-30 22:01:01 by WikiAdmin
Additions:
{{parent page="GeneralUnix"}}
Deletions:
{{parent page="GeneraUnix"}}


Revision [826]

Edited on 2007-07-30 22:00:42 by WikiAdmin
Additions:
{{parent page="GeneraUnix"}}
Deletions:
{{parent page="UNIX"}}


Revision [825]

Edited on 2007-07-30 22:00:12 by WikiAdmin
Additions:
{{parent page="UNIX"}}
==[[DNSSubdomainDelegate Delegating sub-domains]]==


Revision [806]

Edited on 2007-07-25 19:42:39 by WikiAdmin
Additions:
// directory "/etc"; // on linux chroot environment
// recursion no; // this parameter controls whether named should resolve non local domains
Deletions:
recursion no;


Revision [805]

Edited on 2007-07-25 19:38:09 by WikiAdmin
Additions:
%%(text;0.0.127.rev)
$TTL 3D
@ IN SOA ns.comme.ca. hostmaster.comme.ca. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns1.comme.ca.
1 PTR localhost.


Revision [804]

Edited on 2007-07-25 19:36:46 by WikiAdmin
Additions:
// zone for caching
zone "." in {
type hint;
file "root.hints";
zone "0.0.127.in-addr.arpa" in {
file "0.0.127.rev";
%%(text;root.hints)
. 6D IN NS A.ROOT-SERVERS.NET.
. 6D IN NS B.ROOT-SERVERS.NET.
. 6D IN NS C.ROOT-SERVERS.NET.
. 6D IN NS D.ROOT-SERVERS.NET.
. 6D IN NS E.ROOT-SERVERS.NET.
. 6D IN NS F.ROOT-SERVERS.NET.
. 6D IN NS G.ROOT-SERVERS.NET.
. 6D IN NS H.ROOT-SERVERS.NET.
. 6D IN NS I.ROOT-SERVERS.NET.
. 6D IN NS J.ROOT-SERVERS.NET.
. 6D IN NS K.ROOT-SERVERS.NET.
. 6D IN NS L.ROOT-SERVERS.NET.
. 6D IN NS M.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 6D IN A 198.41.0.4
B.ROOT-SERVERS.NET. 6D IN A 192.228.79.201
C.ROOT-SERVERS.NET. 6D IN A 192.33.4.12
D.ROOT-SERVERS.NET. 6D IN A 128.8.10.90
E.ROOT-SERVERS.NET. 6D IN A 192.203.230.10
F.ROOT-SERVERS.NET. 6D IN A 192.5.5.241
G.ROOT-SERVERS.NET. 6D IN A 192.112.36.4
H.ROOT-SERVERS.NET. 6D IN A 128.63.2.53
I.ROOT-SERVERS.NET. 6D IN A 192.36.148.17
J.ROOT-SERVERS.NET. 6D IN A 192.58.128.30
K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129
L.ROOT-SERVERS.NET. 6D IN A 198.32.64.12
M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33


Revision [803]

Edited on 2007-07-25 19:34:34 by WikiAdmin
Additions:
==Generate a rndc key==
rndc-confgen -b 512 | grep -m 1 "secret" | cut -d '"' -f 2
== Creating a local domain ==
secret "";
==Create rndc.key for controlling named==
key "rndckey" {
algorithm hmac-md5;
secret "";
== Create forward & reversed zone==
My example is /etc/namedb/master/comme.ca.zone
Deletions:
=== Creating a local domain ===
secret "tBKBJ1TudayHyBpX0KJizQ==";
Then create the zone file specified above. My example is /etc/namedb/master/comme.ca.zone


Revision [449]

Edited on 2007-05-03 07:29:07 by WikiAdmin
Additions:
%%(text;13.168.192.rev)
$TTL 3600 ;
$ORIGIN 13.168.192.IN-ADDR.ARPA.
@ 1D IN SOA ns1.comme.ca. nsmaster.comme.ca. (
2007050301 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns1.comme.ca.
; server host definitions
10 IN PTR ism.comme.ca.
20 IN PTR homme.comme.ca.
30 IN PTR vm.comme.ca.
254 IN PTR gw.comme.ca.


Revision [448]

The oldest known version of this page was created on 2007-05-03 07:28:13 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki