[afnog] Domain registration and web hosting
Stephane Bortzmeyer
bortzmeyer at nic.fr
Wed Sep 26 13:59:48 UTC 2007
On Wed, Sep 26, 2007 at 03:09:53AM -0700,
Noa of Ark <ncmaina2001 at yahoo.com> wrote
a message of 133 lines which said:
> So basically what i want to know,is how i can host a domain using
> the two DNS server. And also the about the zone files, how would i
> point like their mail,web or say their domain towards their ip
> addresses.
Sorry to insist but these are really basic questions about DNS and
TCP/IP network administration. It would be more sensible to spend some
time learning before actually serving real customers.
This being said, let's assume that your company has the domain
provider.example, the Customer's domain is customer.example, that his
email server is at 192.0.2.1 and that his Web server is at
2001:DB8:42:1:1, the zone file for customer.example would look like:
@ IN SOA ns1.provider.example. hostmaster.provider.example. (
2007092601
21600
3600
3600000
86400 )
; Two NS records, your two name servers
IN NS ns1.provider.example.
IN NS ns2.provider.example.
; Email. Mail server is at customer's premises
IN MX 100 mail
mail IN A 192.0.2.1
; Web server at customer's premises
www IN AAAA 2001:DB8:42:1:1
Obviously, any network professionnal worth of the name would TEST the
domain after the installation. (I use Zonecheck,
http://www.zonecheck.fr/)
> editing the resolve.conf file.
/etc/resolv.conf is for DNS *clients*. As the administrator of the DNS
*server*, you have nothing to do.
> Do i need to add a zone in the resolve.conf file for each domain to
> be able to host them
No. See above.
More information about the afnog
mailing list