Hello there.
I'm in the process of getting a new internet connection, with a fixed instead of a dynamic IP. Before I get it, I would like to review and get help about a few steps that i need to configure my server when the connection is installed.
I have 2 domains hosted by godaddy. One of them, domain.org refers to my root web directory. Another one, domain.net, refers to a user's web directory. I am going to install a DNS server on my machine, and I would like to know what steps I have to take to manage both domains. For what I've been reading lately, it seems to be something like this:
In godaddy, I need to login to my 2 accounts, go to total DNS control, and change A (host) lines: both '@' and 'host' should have my new IP address instead of godaddy's addresses.
Then I need to change the nameservers, and put my ns1.domain.org as nameserver1 for both domains.
Next I need to configure my DNS server. First I need to insert "nameserver 127.0.0.1" in my /etc/resolv.conf so that the server queries itself.
Then I must edit named.conf and insert 2 zones "domain.org" and "domain.net" set with type master and pointing to file of my choice.
next I edit the zone file of one of the domain:
something like "@ IN SOA ns1.domain.org. mail.domain.org { [TTL and other stuff] }"
then I need to insert CNAMES, Aliases and other:
NS www
domain.org. MX 10 mail
localhost A 127.0.0.1
slack A 000.000.000.000
mail CNAME slack
ns1 CNAME slack
slack
I need to do the same for my domain.net... Is this correct? Slack is my machine name, 000.000.000.000 would be the IP and the nameserver and mail server will be in the same machineas the DNS.
The problem is: how do I configure the reverse zones? And how do I make domain.net point to a user's web directory and domain.org point to my root webdirectory?
Any comments or corrections will be very appreciated, as well as any help on how to configure the other stuff I don't know. Thank you
I'm in the process of getting a new internet connection, with a fixed instead of a dynamic IP. Before I get it, I would like to review and get help about a few steps that i need to configure my server when the connection is installed.
I have 2 domains hosted by godaddy. One of them, domain.org refers to my root web directory. Another one, domain.net, refers to a user's web directory. I am going to install a DNS server on my machine, and I would like to know what steps I have to take to manage both domains. For what I've been reading lately, it seems to be something like this:
In godaddy, I need to login to my 2 accounts, go to total DNS control, and change A (host) lines: both '@' and 'host' should have my new IP address instead of godaddy's addresses.
Then I need to change the nameservers, and put my ns1.domain.org as nameserver1 for both domains.
Next I need to configure my DNS server. First I need to insert "nameserver 127.0.0.1" in my /etc/resolv.conf so that the server queries itself.
Then I must edit named.conf and insert 2 zones "domain.org" and "domain.net" set with type master and pointing to file of my choice.
next I edit the zone file of one of the domain:
something like "@ IN SOA ns1.domain.org. mail.domain.org { [TTL and other stuff] }"
then I need to insert CNAMES, Aliases and other:
NS www
domain.org. MX 10 mail
localhost A 127.0.0.1
slack A 000.000.000.000
mail CNAME slack
ns1 CNAME slack
slack
I need to do the same for my domain.net... Is this correct? Slack is my machine name, 000.000.000.000 would be the IP and the nameserver and mail server will be in the same machineas the DNS.
The problem is: how do I configure the reverse zones? And how do I make domain.net point to a user's web directory and domain.org point to my root webdirectory?
Any comments or corrections will be very appreciated, as well as any help on how to configure the other stuff I don't know. Thank you