OS4 DepotLogo by DaveyD 
(anonymous IP:,2193) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file



Support the site

 Readme for:  Network » Samba » setupdhcp.lha


Description: Arexx script to help setup DHCP with Samba
Download: setupdhcp.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 2kb
Version: 1.0
Date: 30 Oct 2007
Author: Brian Savage
Submitter: Brian Savage
Requirements: Working Samba installation
Category: network/samba
License: Emailware
Distribute: yes
Min OS Version: 4.0
FileID: 3108
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 613  (Current version)
613  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
Arexx script that will determine the ip address of your Amiga and the ip
addresses of all hosts on a network that uses DHCP and then add this
information to Roadshow's Hosts database. Allows you to use Samba with DHCP.

You can have this script setup to run every time you boot your Amiga, or like I
do, from a button in DOpus4. IP addresses really don't change that often on my
network. When they do, I just run this script.

Brian Savage,
Mississauga, Ontario, Canada
(other Amiga programs by undersigned include 
 SunCalc, SciCalc, Cal, Convert - all on Aminet)
March 2004

Modified for AmigaOS4 & AmigaOne in January 2005

This script requires:

1. Working Samba installation
2. nmblookup installed (somewhere in the command path)
3. ShowNetStatus in command path (OS4)

What this script does:

1. It copies your existing hosts file (devs:internet/hosts) to ram:    (step 1)
2. It will then extract all hosts & ip addresses from this file EXCEPT for those
on your local network and copies them to a new temporary file ("newhost") in
Ram: (step 2)
3. Finds your AmigaOne's ip address using shownetstatus command. AmigaOne
hostname & ip address then written to temporary file "newhost"  (step 3)
4. Finds the ip address of all hosts that you have added to the hosts
section (B) below. These host names and their corresponding ips are
then written to temporary file "newhosts" in ram: (step 4)
5. Backup old hosts file and copy "newhosts" file in ram: 
to "devs:internet/hosts".
6. Delete all temporary files in ram:

What you need to do:

1. Add ip of your local domain, your AmigaOne's hostname and interface name
to Section A Local Domain below
2. Add names of all hosts on your local network to Section B Hosts below.

Notice: Please make a backup of your original hosts file before you run
this script!!!! It works for me but has not been tried on any other system.

I also have a simliar script for OS3.x that updates Miami's host file. 
If there is any interest I can clean up that script too and upload it 
to Aminet.

Thjis text is also included in the Arexx script.

Brian Savage         

Copyright © 2004-2024 by Björn Hagström All Rights Reserved