Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
-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!
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).
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.