Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: fdb on November 28, 2000, 12:59:15 PM
-
Would it be possible to do this on my e-smith?
This is probably the most tricky feature you can select at this moment. Selecting this options means that you'd like to delegate a subdomain with this name. For this to work , you should be running your own nameserver
Here's a little checklist on how to make your own subdomain work:
(We assume you want to control the domain foo.dyns.cx and will use BIND version 8 as nameserver)
Install BIND 8
edit the file "/etc/named.conf" , and add following lines:
zone "foo.dyns.cx" {
type master;
file "named.foo.dyns.cx";
};
create the file "/var/named/named.foo.dyns.cx" as follows:
$ORIGIN dyns.cx.
foo IN SOA ns.foo.dyns.cx. hostmaster.foo.dyns.cx. (
363 300 300 600 38400 ) ;Cl=2
IN NS ns.foo.dyns.cx. ;Cl=2
IN MX 10 mail.foo.dyns.cx. ;Cl=2 (optional)
IN MX 20 mail.your.provider. ;Cl=2 (optional)
$ORIGIN foo.dyns.cx.
www 300 IN A 1.2.3.4
ftp 300 IN A 5.6.7.8
mail 300 IN A 9.10.11.12
(you can add more here..)
Start (or restart) your nameserver with the command 'ndc restart'
Now your hosts www.foo.dyns.cx and ftp.foo.dyns.cx should resolve to 1.2.3.4 and 5.6.7.8 respectively
For more information on setting up your own domain , you could always browse trough the provided links on our links page.
Note that some ISP's block incoming connections on low ports. If this is the case , it is impossible for you to run your own DNS-server. Check your ISP's policy before nagging that it doesn't work.
Troubleshooting:
in case it doesn't really seem to work , we advise you to take a look at your logfiles (/var/log/messages and /var/log/syslog in linux). These files might give you a good idea about what' going wrong.