[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Adding users programmatically
- Subject: Re: [cobalt-developers] Adding users programmatically
- From: Taco Scargo - Sun Holland - Leiden <Taco.Scargo@xxxxxxx>
- Date: Mon Mar 26 14:27:03 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi,
>> You need to run the scripts as root, but they do the same thing as the ui.
>>
>ftp://ftp.cobaltnet.com/pub/users/jeffb/shell-tools/RaQ3-shell-tools-1.1-2.n
>oarch.rpm
>
>
>is there a way to do this for a domain's dns records as well?
Yes an no. There are no Cobalt supplied utilities to do this. For adding records you could use
the following script I use personally. It takes two arguments, the domainname and the last digit
of the IP address. Feel free to change it. You need to place it e.g. in /root and cd to /etc/named
before usage.
#!/bin/sh
echo mx - $1 High mail.$1 >> records
echo mx www $1 High mail.$1 >> records
echo a mail $1 213.196.30.$2 24 >> records
echo a - $1 213.196.30.$2 24 >> records
echo a www $1 213.196.30.$2 24 >> records
echo a localhost $1 127.0.0.1 >> records
echo soa - $1 ns1.direct5.net:ns2.direct5.net:hostmaster@xxxxxxxxxxx:14400:3600:604800:86400 - >> records
Ofcourse you need to modify the nameservers and hostmaster contact in the soa line.
With regards,
Taco Scargo
Professional Services Manager, EMEA
Sun Microsystems Tel. +31 (71) 565 7021
Server Appliance Business Unit taco.scargo@xxxxxxx