thanks for the warning and all the replies, i'll keep my remote editing
of config files to where i know what i'm doing. the ipcop gui is so
easy anyway. and currently, it's not broken so no need for any further
fixing.
Cheers,
Roger
Nick Rout wrote:
On Mon, Aug 25, 2008 at 10:28 AM, Jim Cheetham <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
On Mon, Aug 25, 2008 at 10:07 AM, Roger Searle
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
> Just by way of providing the solution to this, indeed I do have name
> resolution functioning on this network via the ipcop box, be
that dnsmasq or
> not I am not sure as I never located any definitive info about
this (aside
> hosts file. Not sure how (I mean, where) I might create the
fixed leases
> though - maybe someone might be able to tell me about the
relevant file(s)
> for that?
If it's stock dnsmasq, you can probably provide a mapping of MAC
address to hostname in /etc/ethers, and then IP address to hostname in
/etc/hosts.
If you do that, make sure that you stop dnsmasq, then remove any
"wrong" leases from /tmp/dhcp.leases, then restart it.
But if it's all wrapped up in ipcop, you'll have to get someone else
to help ... :-)
ipcop regenerates lots of files on startup (and on restarting some
services). So amending /etc/hosts via ssh and vi isn't going to
survive. It probably won't even survive a disconnection/reconnection
from the net as (IIRC) the dns service is restarted and /etc/hosts is
rewritten from ipcop's config files.
I don't presently have an ipcop box but IIRC the configs are in
/var/ipcop (somewhere under /var anyway, pretty easy to find).
There are subdirectories with config info in them for different
services, including the ones that map MAC to IP address and that set
up /etc/hosts. Be careful editing them as you can screw your system.
The format of some of the files is not intuitive - they are plain text
but some of the fields are not obvious.
Which is why you should use the gui to do these things, the provided
scripts behind the gui should do the editing correctly.
Hope that helps.