[OT] Define a domains DNS entry entirely in terms of another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Say I have example.com set up like this:

example.com.          IN NS     ns.example.com.
example.com.          IN NS     ns0.example.com.
ns.example.com.       IN A      1.2.3.4
example.com.          IN A      1.2.3.4
webmail.example.com.  IN CNAME  example.com.
mail.example.com.     IN CNAME  example.com.
ftp.example.com.      IN CNAME  example.com.
www.example.com.      IN CNAME  example.com.
example.com.          IN MX 10  mail.example.com.

I also have example.net and example.org, but as they always redirect to example.com I don't want to refer to any IP addresses in their nameserver recs, just example.com.

I tried this which just gave host not found

example.net.          IN NS     ns.example.net.
example.net.          IN NS     ns0.example.net.
ns.example.net.       IN CNAME  example.com.
example.net.          IN CNAME  example.com.
webmail.example.net.  IN CNAME  example.net.
mail.example.net.     IN CNAME  example.net.
ftp.example.net.      IN CNAME  example.net.
www.example.net.      IN CNAME  example.net.
example.net.          IN MX 10  mail.example.net.

I can fix it by explicitly repeating the IP's (ie, just use the 2 A recs from the first block)
but it struck me there must be a smarter way. Thanks.

--
--------------------------
http://www.phonewebcam.com
john.steel@xxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux