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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to host my web and mail server on my FC 6 linux server. My domain registar asked me for 2 DNS servers in order to be able to register an domain. The problem is that my ISP only provided me one DNS server.
My question is, is it possible to run the DNS, web and mail server on the same linux box, with only one fixed IP? In BIND's zones configuration what should be the name of the DNS server that I'm running and should I specify the same IP / server name for the web and mail server?
So, this also means that I could be hosting several subdomains on the same machine as well, right?
What would the zones files look like in this case. And further more, what other things have to me changed in order to hava apache serve different content for different subdomains?
So, this also means that I could be hosting several subdomains on the same machine as well, right?
Yes. The zone file for your domain should look like this (you can use either A or CNAME):
Code:
IN NS yourdns.domain.com.
IN NS your-isp-dns.isp.com
IN MX 10 mail.domain.com.
yourdns IN A xx.xx.xx.xx
www IN A xx.xx.xx.xx
mail IN A xx.xx.xx.xx
sub1 IN A xx.xx.xx.xx
sub2 IN CNAME sub1
As for apache you should read the apache documentation about vhosts for apache 1.3 or apache 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.