Krsnendu writes: > I have a laptop computer that connects through wireless and wired at > different times. The ping works if I am connected to one of the ports, > but if I connect to the other port instead I get an error. If I do > nmblookup <hostname> it always gives me the up-to-date ip address but > I keep getting "no ping" errors when I try to backup when connected to > the port it doesn't like. Do I have to change something in /etc/hosts > for dhcpd to fix this? It needs to work if it is connected to both > wireless and wired at the same time or either separately.
If perl's gethostbyname() (ie: NS lookup) works, then that IP address is used. If not, then nmblookup is run. So provided there is no entry in /etc/hosts, nmblookup should be used to get the IP address. That is then passed to ping. You should run BackupPC_dump manually with the -v option to see exactly which commands are run. Craig ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
