Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2005 15:02:41 -0700
From:      Vizion <vizion@vizion.occoxmail.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: nameserver changing
Message-ID:  <200505311502.42243.vizion@vizion.occoxmail.com>
In-Reply-To: <20050531215702.GE1476@gothmog.gr>
References:  <200505311433.54138.vizion@vizion.occoxmail.com> <20050531215702.GE1476@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 31 May 2005 14:57,  the author Giorgos Keramidas contributed to the 
dialogue on-
 Re: nameserver changing: 

>On 2005-05-31 14:33, Vizion <vizion@vizion.occoxmail.com> wrote:
>> Hi
>>
>> I want to be able to automatically remove/add one or more dns servers from
>> the list of dns's used as resolvers by particular machine(s) on a network
>> which I control from data stored in a file in each computer.
>> e.g file might contain lines such as:
>> xxx.xxx.xxx.xxx remove  dns xxx.xxx.xxx
>> xxx.xxx.xxx.xxx add        dns xxx.xxx.xxx
>> None of the machines are running their own dns servers.
>> The changes will be initiated by cron.
>>
>> Don't ask me why I need to do it -- the answer is far too complicated :-)
>>
>> Suggestions please
>
>You could use the "template" file as a source and generate a shell
>script that will be scp'ed and executed on each host.  If you have enoug
>time, you could write a Perl script that will read this format:
>
>	10.0.0.0/8	remove		*
>	10.0.0.0/8	add		10.0.0.2
>
>and then create one Perl script for every host.  The script could be
>scp'ed (if you have SSH keys set up correctly) and run remotely, with
>something like:
>
>	# cat scripts/10.0.0.1.sh | ssh -l root 10.0.0.1

thanks - that sounds reasonable --  is freebsd configured to refer  to 
etc/hosts to look up the dns server ips on every occasion or do I have to 
reload?
David

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing May/June bound for Europe via Panama 
Canal.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505311502.42243.vizion>