Re: [BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-02 Thread Jason Hughes
Dave Fancella wrote:
> I went ahead and did this for now, but it's still not quite the right 
> solution.  The laptop is dhcp because it periodically goes wardriving, so a 
> solution where I can have it dhcp is best.  :)  Still, it'll be some months 
> again before I might need it to leave the house, in the meantime it's staying 
> put, so this will work for awhile.  Thanks.
>   
>

You can set most recent consumer router/gateway boxes to assign a static 
IP through DHCP when it recognizes a MAC address.  This way, you can 
still have your laptop set up for automatic IP discovery through DHCP, 
but at home, you always get the same IP address, and the laptop is 
none-the-wiser.

With regards to setting up an DNS server, it's trivial to set up simple 
DNS, but it can be somewhat challenging to set up reverse DNS for a 
first-timer.  Not all router/gateway boxes support overriding just the 
DNS server address when handing out IP addresses via DHCP, though.  My 
Zyxel P-330W allows this, and it works really well.  Windows and Linux 
boxes can be set up easily to register their IP addresses with their DNS 
server when they receive a DHCP ack, so it can reverse the mapping as 
needed.  IP-to-hostname resolution is called reverse DNS, which is what 
you need for dynamic IP clients to resolve correctly with traceroute and 
nslookup, among other things.

So, the typical alternative is to run DNS and DHCP from a single Linux 
box instead of your router, which gives you the safest mechanism for 
updating the reverse DNS.  There's a security hole there if someone else 
logs into your network and pretends their IP maps to one of your other 
machine names and is trusted to update that by the DNS server...  If you 
run DHCP and DNS on the same machine, the clients don't need to register 
themselves because DHCP can tell DNS directly using only the loopback 
port.  There are plenty of HowTo's out there for DNS, in case you want a 
weekend project, though.  :-)))

But, by far, the simplest solution is to use a static assignment from DHCP.

JH

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-02 Thread Dave Fancella
On Thursday 01 February 2007 9:25 pm, Les Stott wrote:
>
> Probably the best thing to do then.Set your hosts to be static,
> either by hard-coding in the linksys dhcp, or set the pc's as static.
>
> Then add host entires on your Backup PC server to /etc/hosts
>
> The server will look at /etc/hosts first before going to dns.
>
> That should do the trick.

I went ahead and did this for now, but it's still not quite the right 
solution.  The laptop is dhcp because it periodically goes wardriving, so a 
solution where I can have it dhcp is best.  :)  Still, it'll be some months 
again before I might need it to leave the house, in the meantime it's staying 
put, so this will work for awhile.  Thanks.

Dave

> Regards,
>
> Les
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-01 Thread Les Stott
Dave Fancella wrote:
> On Thursday 01 February 2007 5:54 am, Les Stott wrote:
>   
> No domain, the computer's hostname is just "ghostwheel". I'm a home 
> user, so
> I'm sitting behind a cheap linksys wireless nat router, with the router 
> configured as a gateway and all pc's use it as their dns server.
>   

ok, then it sounds like the linksys has a default domain and that 
resolves ghostwheel.whateverdomain.com. That happened to me when i had a 
linksys, but others are the same.
>   
>> In an internal situation you usually create an internal dns zone, i like
>> to use "lan". So you setup those zones on your dns server, whether it be
>> on the backuppc server or another one.
>>
>> Then you tell /etc/resolv.conf to search "lan" and specify the nameserver.
>>
>> sounds like your internal domain is configured as a public one, and your
>> backuppc server is set to look at internet dns servers first and has no
>> local zone file. Hence the resolution to a remote address.
>> 
>
> Backup server has a local hosts file that only contains hosts with static 
> ips.  
> I certainly wouldn't mind having it update itself with dhcp hosts, if that 
> fixes it.  I'm not in a hurry to set up a dns server, like I say, I'm just a 
> home user.  I just want backuppc to ping the right host.  :)  I'm willing to 
> stop the samba service and have it do something else, and would have 
> preferred not to install samba in the first place on the laptop, but the 
> backuppc docs didn't help me do it for whatever reason (probably general 
> dumbness on my side), and I wanted it working.
>
>   
Probably the best thing to do then.Set your hosts to be static, 
either by hard-coding in the linksys dhcp, or set the pc's as static.

Then add host entires on your Backup PC server to /etc/hosts

The server will look at /etc/hosts first before going to dns.

That should do the trick.

Regards,

Les


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-01 Thread Dave Fancella
On Thursday 01 February 2007 5:54 am, Les Stott wrote:
> > First: the backuppc website needs to be updated to reflect that this list
> > is a members-only list.  I originally sent this email without joining but
> > received the "Your post awaits moderation" email.  So I joined the list
> > and have resent it.

Minor errata, that should read "re-sent", not "resent", heh.  Sorry about 
that.  Didn't notice how much a missing hyphen changed the meaning there.

> > I have an interesting situation.  It appears that backuppc is pinging
> > hosts by hostname, but backing up by IP address.  So what happens then is
> > that the hostname for my laptop (dhcp on the network) doesn't resolve to
> > my laptop, but for some reason or other it does resolve.  It resolves to
> > someone else's machine out on the interwebby.  So pings fail unless I
> > increase the timeout. Increasing the timeout is just a hack here, because
> > it means I'm pinging some other machine to decide whether or not to
> > backup my own machine.
>
> You've got something wrong with your dns setup. Dont confuse netbios
> name lookups with dns related pings, they are completely different. What
> is your computer's hostname? what domain is passed down to the pc via
> dhcp, if any?

No domain, the computer's hostname is just "ghostwheel".  I'm a home user, so 
I'm sitting behind a cheap linksys wireless nat router, with the router 
configured as a gateway and all pc's use it as their dns server.

> In an internal situation you usually create an internal dns zone, i like
> to use "lan". So you setup those zones on your dns server, whether it be
> on the backuppc server or another one.
>
> Then you tell /etc/resolv.conf to search "lan" and specify the nameserver.
>
> sounds like your internal domain is configured as a public one, and your
> backuppc server is set to look at internet dns servers first and has no
> local zone file. Hence the resolution to a remote address.

Backup server has a local hosts file that only contains hosts with static ips.  
I certainly wouldn't mind having it update itself with dhcp hosts, if that 
fixes it.  I'm not in a hurry to set up a dns server, like I say, I'm just a 
home user.  I just want backuppc to ping the right host.  :)  I'm willing to 
stop the samba service and have it do something else, and would have 
preferred not to install samba in the first place on the laptop, but the 
backuppc docs didn't help me do it for whatever reason (probably general 
dumbness on my side), and I wanted it working.

> Hope that helps.

Thanks!

Dave

> Regards,
>
> Les

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-01 Thread Les Stott
Dave Fancella wrote:
> All,
>
> First: the backuppc website needs to be updated to reflect that this list is 
> a 
> members-only list.  I originally sent this email without joining but received 
> the "Your post awaits moderation" email.  So I joined the list and have 
> resent it.
>
> I have an interesting situation.  It appears that backuppc is pinging hosts 
> by 
> hostname, but backing up by IP address.  So what happens then is that the 
> hostname for my laptop (dhcp on the network) doesn't resolve to my laptop, 
> but for some reason or other it does resolve.  It resolves to someone else's 
> machine out on the interwebby.  So pings fail unless I increase the timeout.  
> Increasing the timeout is just a hack here, because it means I'm pinging some 
> other machine to decide whether or not to backup my own machine.
>
>   
You've got something wrong with your dns setup. Dont confuse netbios 
name lookups with dns related pings, they are completely different. What 
is your computer's hostname? what domain is passed down to the pc via 
dhcp, if any?

In an internal situation you usually create an internal dns zone, i like 
to use "lan". So you setup those zones on your dns server, whether it be 
on the backuppc server or another one.

Then you tell /etc/resolv.conf to search "lan" and specify the nameserver.

sounds like your internal domain is configured as a public one, and your 
backuppc server is set to look at internet dns servers first and has no 
local zone file. Hence the resolution to a remote address.

Hope that helps.

Regards,

Les



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] BackupPC pings by hostname, but backs up by ip?

2007-02-01 Thread Dave Fancella
All,

First: the backuppc website needs to be updated to reflect that this list is a 
members-only list.  I originally sent this email without joining but received 
the "Your post awaits moderation" email.  So I joined the list and have 
resent it.

I have an interesting situation.  It appears that backuppc is pinging hosts by 
hostname, but backing up by IP address.  So what happens then is that the 
hostname for my laptop (dhcp on the network) doesn't resolve to my laptop, 
but for some reason or other it does resolve.  It resolves to someone else's 
machine out on the interwebby.  So pings fail unless I increase the timeout.  
Increasing the timeout is just a hack here, because it means I'm pinging some 
other machine to decide whether or not to backup my own machine.

So, it was previously also trying to backup by hostname, which as I mentioned 
resolved to someone else's machine, so it obviously failed.  So I changed the 
tar command to use $hostIP.  That made it go to the right machine for the 
backup itself.  When I changed the ping command to $hostIP, it failed to ping 
anything.

I'm using backuppc 2.1.2-r1, from Gentoo's Portage.  The laptop I'm trying to 
ping is Mandriva Linux 2006, with a brandy-new ssh server (security update, I 
didn't catch the version).  I'm using the tar method to back it up because I 
don't really feel like setting up an rsync daemon right now.  I installed 
Samba (some version, I forget which, but nmblookup works as expected so I 
guess it doesn't matter) so backuppc could find the laptop.

The two other machines on my network are the Gentoo box and a win2k box.  
Backups work from them, and the pings are going to the right places primarily 
because they have static IPs.

So what do I need to do?  I'm a backuppc noob.  Previously I used rdiff-backup 
and some custom bash scripts wrapped in a cronjob, so I literally just 
finished setting up backuppc.  (Finished being relative, it's not finished 
until it works right, of course)

Thanks,
Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/