LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 02-13-2003, 10:38 AM   #1
dibakar
LQ Newbie
 
Registered: Feb 2003
Posts: 22

Rep: Reputation: 15
Angry Please help me configuring DNS!!!


I have two systems

System 1 : Linux Server (I want to configure DNS here)
IP: 192.168.0.1

System 2 : Windows 98 system ( IP 192.168.0.2)

After configuring the DNS , I want to configure Sendmail, Apache etc... I think we need to set up DNS for properly configuring DNS?? Please note that I m a newbie and trying to create a demo DNS server on my LINUX 7.2 system for learning and practice purpose. Please guide me the way you can. You can assume any scenario suitable for me considering the number of systems (2) I have so that I can learn "How to configure DNS on Linux 7.2.

Pleaseeeeeeee help...

Many thanks to all ....
 
Old 02-13-2003, 11:24 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
You don't need DNS server to configure other services (well... a mail server may need it). Before you start configuring it you need to have think about your domain (in local network you can use any name you wish). When you know the domain you need to:
1) Write /etc/named.conf. If you're using bind from RPM, the file should exist, you only need to review it. If it looks OK, leave it as it is. (Note something like
options {
directory "/var/named";
}
It describes the directory where other configuration files should be).
2) Check if you have /var/named/root.hints and named.conf.
Edit named.conf, to add a simple domain add to it:
zone "yourdomainhere" {
type master;
notify no;
file "pz/yourdomainhere";
}
Then look into pz directory. There may be example files. If they are, copy one of them as "yourdomainhere" and try to modify the IPs. If in trouble, please post again.
 
Old 02-13-2003, 04:32 PM   #3
importboy03
Member
 
Registered: Feb 2003
Location: NorthEast
Distribution: RH 8.0
Posts: 34

Rep: Reputation: 15
step to get you started for DNS:

-register domain name and point your domain to your server.
-on your server, edit /etc/named.conf just like step 2 from Mara
-now "yourdomain" file is on the /var/named directory, you can add A, MX record in there just like this sample:
$TTL 86400
@ IN SOA ns.yourdomain.com. root.yourdomain.com (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)


@ IN NS ns

@ IN MX 10 mail.yourdomain.com.

www IN A 192.168.1.1
mail IN A 192.168.1.1
@ IN A 192.168.1.1

After you finish, don't forgot to restart your named. Hope that help!
 
Old 02-14-2003, 08:44 PM   #4
dibakar
LQ Newbie
 
Registered: Feb 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you all for helping me setting up the DNS.....I have finally configured it and now in the process of settting up Sendmail....

Special thanks to "Mara" and "importboy03"

Cheers!!

Dibs
 
Old 02-22-2003, 11:19 AM   #5
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Quote:
Originally posted by Mara
Before you start configuring it you need to have think about your domain (in local network you can use any name you wish).
Q: And if I want a domain that will be accessible on the Internet? How to proceed?
Thank you very much.
 
Old 02-22-2003, 03:48 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
You need to buy one (yourname.org, yourname.net, yourname.com etc) or use free domain registration (longer names).
 
Old 04-12-2003, 03:21 PM   #7
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Rep: Reputation: 30
well this thread has helped me out alot!
it works,
so what do i do to get my other machine running bind9
to act as the slave exactly?
 
Old 04-12-2003, 05:22 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
You need to set it up. Most tutorials/guides you can find are written aboyut master nameservers. Setting a slave one is very similar. Start from http://www.tldp.org/HOWTO/DNS-HOWTO.html (mostly about master servers, but you'll learn how to make a slave one, too).
 
Old 04-13-2003, 08:05 AM   #9
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Rep: Reputation: 30
i got it going right after sending the last post.
this is cool stuff.

thanks
 
Old 04-13-2003, 03:14 PM   #10
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Rep: Reputation: 15
Ok, question.

Once you've got two DNS servers set up on your localnetwork, a master and a slave, is it possible to have your domain point to both servers if you are using only one IP address?
 
Old 04-14-2003, 09:21 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
No, you need one IP address for one DNS server. So you need two IPs from your provider (non-local ones) to have them both visible from outside.
 
Old 04-14-2003, 10:44 AM   #12
gwroy20
Member
 
Registered: Mar 2003
Location: New York City
Distribution: Slackware 9.1, FreeBSD 5.2.1, OpenBSD 3.3
Posts: 89

Rep: Reputation: 15
Sorry if any of this sounds dumb, I'm just trying to make this work. Can I set up a secondary DNS server at lets say my cousins house or a friend's house?
 
Old 04-14-2003, 12:27 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
If your cousin or friend has an IP different that yours (non-local one), yes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DNS kamransoomro84 Linux - General 4 11-21-2005 10:52 PM
Configuring DNS and DHCP plehman Linux - Networking 3 03-24-2005 05:21 PM
configuring dns abhis_mail2002 Fedora 0 01-12-2005 05:41 AM
Configuring DNS on SuSE nkitilizer Linux - Distributions 0 07-22-2003 09:20 AM
DHCP and DNS and configuring both... wlewis Linux - Networking 2 07-20-2002 02:03 PM


All times are GMT -5. The time now is 02:23 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration