LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2007, 02:43 AM   #1
rockymaxsource
Member
 
Registered: Feb 2006
Posts: 43

Rep: Reputation: 15
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:

Quote:
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 @

Quote:
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

Quote:
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";
};

To test out I use my another Unbuntu laptop and changed the /etc/resolv.conf read aa below:
Quote:
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:

Quote:
lover@lover-laptop:~$ nslookup mxoffice.in
Server: 192.168.1.55
Address: 192.168.1.55#53

** server can't find mxoffice.in: SERVFAIL

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
 
Old 07-19-2007, 05:09 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Can you resolve a specific host? What is the output of
Code:
nslookup woody.mxoffice.in
If you can, then you must add a record for your origin (the domainname)
Remove the line
Quote:
woody IN CNAME @
and use
Code:
@ IN A 192.168.1.55
Regards
 
  


Reply

Tags
dns, lan, server



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dns Server Inside A Lan JustMoi Linux - Networking 5 10-26-2006 01:00 AM
Help in setting up a DNS LAN server Ronin_tekorei Linux - Networking 15 05-30-2006 06:44 AM
How do I set up a server on a lan? Terry M Linux - Newbie 1 02-19-2005 11:23 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration