Set up LAN DNS server
Hey,
I'm runing Debian etch with BIND9 on it. I'm following the
aboutdebian.com tutorial on DNS server. I'm intending to set up my
Desktop Debian box as the DNS server for the LAN dns server and
Internet Name Resolution server(The IP address of the Desktop used in
preffered name server for each work station's TCP/IP configuration)
1, To make is serve as the Internet Name Resolution I make the Debian
Desktop's /etc/resolv.conf only have one line "nameserver 127.0.0.1"
2 To make the Desktop server as LAN dns server I configure the
following files on the Desktop Debian box:
$$$$----------db.mxoffice.in---------begin------------------$$$$$$$$
LIJIANG:/etc/bind# more db.mxoffice.in
$TTL 86400
mxoffice.in. IN SOA woody.mxoffice.in.
rocky.mxoffice.in. (
2007071558 ; Serial no., based on date
21600 ; Refresh after 6 hours
3600 ; Retry after 1 hour
604800 ; Expire after 7 days
3600 ; Minimum TTL of 1 hour
)
rockyLaptop IN A 192.168.1.19
woody IN A 192.168.1.55
@ IN NS woody
;@ IN MX 10 woody
www IN CNAME woody
;ftp IN CNAME woody
woody IN CNAME @
$$$$----------db.mxoffice.in---------end------------------$$$$$$$$
$$$$------------db.1.168.192--------begin------------$$$$$$$$$$$
LIJIANG:/etc/bind# more db.1.168.192
$TTL 86400
@ IN SOA woody.mxoffice.in.
rocky.mxoffice.in. (
2007071558 ; Serial no., based on date
21600 ; Refresh after 6 hours
3600 ; Retry after 1 hour
604800 ; Expire after 7 days
3600 ; Minimum TTL of 1 hour
)
19 IN PTR rockyLaptop
55 IN PTR woody
@ IN NS woody
$$$$------------db.1.168.192--------end------------$$$$$$$$$$$
$$$$------------named.conf.local--------begin----------$$$$$$$$$$$
LIJIANG:/etc/bind# more 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 "mxoffice.in" {
type master;
file "/etc/bind/db.mxoffice.in";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.1.168.192";
};
$$$$------------named.conf.local--------end----------$$$$$$$$$$$
To test out I use my another Unbuntu laptop and changed the /etc/
resolv.conf read aa below:
lover@lover-laptop:~$ more /etc/resolv.conf
search mxoffice.in
nameserver 192.168.1.55
nslookup google.com on the ubuntu laptop gives me the right result but
use nslookup to test mxoffice.in gives me the following error:
$$$$4------------Error---begin$$$
lover@lover-laptop:~$ nslookup mxoffice.in
Server: 192.168.1.55
Address: 192.168.1.55#53
** server can't find mxoffice.in: SERVFAIL
$$$---error----end---$$$$$$$$
Did my LAN dns server set up correctly? Does the above nslookup right
way of testing that out? If any of you could give me some assistance,
I would really appreciate it?
Blessings,
Rocky
Reply to: