Possible to associate one local hostname with two local addresses?

I'm trying to set up a backup system for our LAN. Several of the programs involved (e.g., rsnapshot) have their configuration based around what they recognize as the hostname of the other end. It's easy enough to set the local hostnames as I like, either in /etc/hosts or in /etc/ssh/ssh_config.
BUT the issue is that some of my machines might have different IP addresses depending on whether they're connected over wire or wifi. (Sometimes both connections are up; then wire should take precedence.) And some of the services I'm setting up (again, rsnapshot is an example) have the server initiate the connection to the client. (At least, it's what I think of as the server: the machine with the static wired LAN connection that the backup storage is kept on. The machines being backed up are the ones whose numeric IP isn't stable.)
Again, this is all inside a LAN. The IPs involved are all 192.168.*.* stuff.
How do I get the server to know what IP a given host, e.g., "wifeslaptop", has? If it were just a matter of a single network card, e.g., only wifi connections, then the router is already able to assign it a fixed local IP. But wifeslaptop might (instead or additionally) be connected by wire, too.
I see five possible strategies for solving this.
1. Is it possible to get the server to associate two numeric addresses with a single hostname? So that it recognizes both as instances of "wifeslaptop", and I guess if it wants to initiate a connection to that host, it tries the first numeric address then the second if that fails? Is it possible to do this simply, or does it require installing some kind of extra server/daemon?
2. Failing that, I guess I need to wrestle with our router to try to get it to assign the same numeric address to the wired or the wifi connection, and ensure that both connections are never active at the same time.
3. Or I've got to set up some kind of local dynamic dns system, so that my server can look up "wifeslaptop" and discover what LAN IP address it has.
4. Failing all of that, maybe I need to instead dynamically generate the config files for the services I'm trying to use. E.g., before running rsnapshot, the server could ping the two numeric addresses wifeslaptop might have, then generate a rsnapshot config file on the fly associating the address which is present with the (single) backup store it keeps for wife's laptop.
5. Or maybe simplest yet, if it works, I could (either with symlinks or with mount -o bind) let rsnapshot THINK there are two backup stores, one for each version of wifeslaptop, but have them point to the same place on disk.
I'm listing all these strategies so that you can say "Forget about 1, 4 or 5 are much easier." But for the moment, what I'm thinking about is 1. Is this easy to do?

There's some promising text in "man -s7 hostname" which says env variable HOSTALIASES can point to a file which expands simple hostname aliases (with no periods) to whatever you want (I think the expansion has to be to a hostname not a numeric address, but not sure). One could then just manipulate the alias file dynamically. However, this doesn't seem to work with any of the utilities I tried (ping, host).
I guess I could try manipulating /etc/hosts or /etc/ssh_config, since I'm going to be using rsnapshot on top of ssh. But given the potential downsides of messing up either of those files, I'm now inclined to just generate rsnapshot's config file dynamically instead. And hope that similar workarounds can be found for other utilities...

Similar Messages

  • Is possible to take the Infopath form with two repeat section in one SharePoint list

    Is possible to take the Infopath form  with two repeat section in one Sharepoint list 
    Take two repeat section and put them one bellow to other one in a SP list.
    The motive is that the first repeat section is based in account own by the requestor and the second repeat section is when the requestor is doing backup time for some one else where need to log the amount of time that spend in the peer account.
    I have basic logic in the form when requestor said Are you doing backup for some else? and press YES it is be able to use the second repeat section.
     Le me know how much pain full is going tobe or not..
    –Q1: Is possible to do this ?  With codeless or not
    –Q2:What steps I need to do to accomplish this?  feasible or not
    the following picture give a better idea of what I am looking to accomplish:
    CRISTINA&amp MICROSOFT Forum

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Is it possible to use a single iPhone with two contact numbers via dual sim or an app?

    Is it possible to use a single iPhone with two contact numbers via dual sim or an app?
    This would be a useful feature for personal and company numbers but using one mobile, rather than carrying two devices or diverting calls.

    Then go ahead and try it.  You'll find it's probably a load of crap.
    You want 2 numbers, then use Google Voice or TalkaTone
    Those are US based only Apps or numbers so no good. I won't be wasting money by just trying something either, especially because using a dual sim would mean purchasing another sim card on either pay as you go or monthly contact.

  • Connect one Business system with two Integration Server

    Hello,
    Can we able to connect one Business System with two Integration Server?
    I have one Business system (ECC 6.0 with the client 900) and it is already connected with PI 7.0 system.Can I able to connect the same sytem (with same client) with PI7.1?
    I want to do the HTTP Connection for ABAP Proxy for this two XI system with one business Sytem ?
    Is this possible ?Is there any work around solution there?
    Thanks.

    Hello ,
    This document describes about connecting with Two PI7.1 system using Application Server 7.1 and Application Server 7.0 SP14  .
    I want to connect same ECC system via abap proxy with two different PI system .One is PI7.0 and another one is PI7.1 system.
    Is this possible if i use Application Server 7.1 or Application Server 7.0 SP14  ?
    Thanks.
    Lakshmi
    Edited by: Muthulakshmi Pandi on Apr 16, 2009 11:48 PM
    Edited by: Muthulakshmi Pandi on Apr 17, 2009 12:21 AM

  • One sales order with two bill to party at the document header

    Hello to all
    We have the following issue: create one sales order with two bill to party and only one payer. The reason is that the materials are paid with the same customer(only one account document) but we need to print two invoices one by each bill to party and each invoice printed with its own invoice number)
    We are thinking in one development due to the key users won´t create different line items or create different sales order.
    The process will be the following:
    1-Create the sales order with one payer and two bill to party or a new bussiness partner(you can use only one bill to party in each customer)
    2-Invoice the sales order. The system will create only one account document because there is only one payer but the system will create two printed documents with the invoice.
    So if someone had the same requeriments, any help will be appreciated.
    Thanks in advance.

    Pablo,
    You intend to create one invoice (one payer) but 2 different document print layouts.
    That should work. But, you have stated 'printed with its own invoice number'.... does this mean you need 2 distinct document numbers in the system? That will not be possible.
    An alterantive is to create a Proforma invoice and a regular invoice and send it to the 2 parties involved.
    Ashutosh

  • Synching ONE MobileMe calendar with TWO iphones

    I keep reading that it's possible to synch a MobileMe calendar with TWO iphones but cannot find out HOW to do so. I presume that SHARING a calendar is different from SYNCHRONISING a calendar. Sharing a calendar seems to me to be cumbersome in that it involves sending an invitation which then must be specifically dealt with by the recipient. SYNCHRONISING a calendar though presumably means updating a calendar entry automatically. It works with one iphone. How can it be made to work with two iphones? Any help will be greatly appreciated. Thank you.

    Dave Hutch wrote:
    Add the calendar on both phones as a MobileMe Calendar and use the same login information for both phones.
    That's it.
    http://www.apple.com/mobileme/setup/iphone_ipod.html
    ANything you add will appear on the other phone and visa versa
    my OG iPhone won't sync with my MobileME calendar. Is that because the OG phone can't be updated to ios4?
    And if that's the problem is there any alternative for syncing the OG iPhone's calendar (which is now empty)?

  • I have one itunes account with two phones. when i phone one of the numbers both phones have started to ring, only when connected to wifi at home. How do i resolve this please?

    I have one itunes account with two phones assigned to it, sons and daughters, (5s). When i phone one of the numbers both phones have started to ring, only when connected to wifi at home. The problem does not occur when not connected to wifi. How do i resolve this please? texting is fine it is only when ringing one of the numbers.

    <http://support.apple.com/kb/HT6337>
    "To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls."

  • Is there a way to share one music library with two seperate icloud accounts?

    Is there a way to share one music library with two seperate icloud accounts? I have over 12,000 songs in my library and my son likes the same music, but recently his ipod touch is picking up the texts from my wife's and my phone? I was told the only way to stop this is by giving him his own icloud account which would mean he wouldn't have access to my music library. Any ideas?

    He can still use your Apple ID for iTunes content, no issues. He just gets a separate ID for everything else.

  • How to create one soap interface with two soap action?

    Hi,
    I need to create one SOAP Interface with two or more webmethods (soap action), for example:
    Interface: MI_Outb_User
    Webmethods: createUser, searchUser, deleteUser.
    Can anybody helpe me?

    Hi Santos,
    I assume you will use one action at a time and depending upon certain condition you want to invoke the webservice and the corresponding action. If this is yes, then please check michaels reply in this thread:
    How can I handle serveral soap actions 
    or see stefans reply:
    Re: Is SOAP Adapter Action field can contain 2 or more "SOAP Actions"
    If this is not, then please ignore it.
    Regards,
    ---Satish

  • How to link one scroll bar with two dynamic text boxes.

    How to link one scroll bar with two dynamic text boxes.
    If i move scroll bar in one text box,automatically text will
    be moved in another text box.But scroll bar is not visible.
    Can you please help me.
    Thanks in advance.

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • Can I link up one time capsule with two airport express, Can I link up one time capsule with two airport express

    Hi, I would like to know whether I can link up one time capsule with two airport express. The result why is that I would like to put one time capsule at first floor, two airport express at 2nd floor and 3rd floor. All these three share one network. Please advise. Thanks.

    There are several ways to conenct them. We need to know what it is you want to accomplish first. Do you want better Wi-Fi coverage on the second and third floors or do you want to stream music to the xpresses?

  • Is it possible to differentiate one payroll area with different currency under same company code

    Hi experts ,
    MY client wants to pay in yemen currency for the employees who working in yemen, but it was comes under same company code created for india.we have differentiated yemen under different payroll area wise . so is it possible to  differentiate one payroll area with different currency under same company code.
    thnx,
    vamshi keshavapatnam

    Hi Vamshi,
    I don't think so what you have done is correct. It seems like Global Employment functionality. As I understood you have some EEs which are Indian but working in company branch of Yeman.
    If this is the case you should define a new company code for Yeman branch and use Global Employment functionality. By this you can make decision to pay in home currency or traget country currency.
    Regards,
    Omid

  • One controlling area  with two company codes assigned with one CoA

    Hi,
    I   am having one controlling area  with two company codes assigned , i am using the same  gl for two company codes  as cost element , when i am positng the  miro for vendor purpose  it posted the error  , to avoid the  price difference purpose , i have given  one cost center  of  first company code in OKB9 , and  overcome the error , entries posted, when i am posting new entry for MIRO   in secod  company codes with same cost  element ,  price difference of that account should go to the other cost center  which specifically created for second company code,  in the OBK9 i have given  cost center first company code   of the same GL  account , now this is another new entry in the second company code with other cost center in the second company code  since the price difference  account should sit in the other cost center of second company code,  how to  over come  this problem, pls help me
    Thanks and regards
    Murugesan

    Hi,
    First, remove the default cost center in the cost element. Then, for the system to derive the correct cost center for each company codes, define one cost center for each compny codes in OKB9 just like this:
    Co Code   Cost Element   Cost Center
    1000          1000000              A
    2000          1000000              B
    So during MIRO, the system will derive these values you maintain in OKB9.
    Regards,

  • Every time i wake my mac i get This computer's local hostname "D-360.local" is already in use on this network. The name has been changed to "D-444.local".

    error message that my local host name is in use and the system generates a new one every time I wake my mac the error mssg reads This computer’s local hostname “D-360.local” is already in use on this network. The name has been changed to “D-444.local”.

    There are several possible causes for this behavior.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local". Resolve the name conflict by renaming one or more of them in the Sharing preference pane.
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.

  • I get this message:This computer's local hostname "x-8.local" is already in use on this network. The name has been changed to "x-9.local" I have turned off sharing and it continues to upgrade name. What is the fix?

    I get this message: This computer’s local hostname “x-8.local” is already in use on this network. The name has been changed to “x-9.local” I have turned off sharing and it continues to upgrade name. What is the fix?

    Hi, this is a common problem, mostly just irksome though.
    It can have many cause, like using more than one Interface for connections, Router temporarily losing x.local & seeing a new connection with x.local already used, insists it must be x-1.local, x-2.local, etc..
    What all Sharing do you have enabled?
    Some possible fixes...
    http://forums.macrumors.com/showthread.php?t=542899
    https://discussions.apple.com/thread/3941367

Maybe you are looking for

  • VERY URGENT: Msync not synching

    Hi, I have a very urgent problem with MSync. I am able to do the initial synchronisation of my db onto the client and can see the table data on the client with MSql. However if I do any changes to data in either the server or the client then they are

  • Need help with video uploading to itunes & ipod

    hi, i'm new to ipod video. i have 1 music video which i just converted from wmv format > mpeg-4 format. when i dragged the mpeg-4 format to itunes, nothing happened. am i doing this incorrectly? how is the uploading work exactly? i read some of the p

  • Connect to Bex query after logging into Web service

    Hello experts, After logging into the web service, I see connections for all HANA and BW infoProviders. If I click HANA OLAP connection, I see the "next" button. If I click connections to BW InfoProviders, the "Next" button is grayed out, I only have

  • Read all files in chield and their chield's directory

    I am trying to make a program which read all files in a directory and its subdirectory like scandisk program of window's operating system. I gause this I can do via recursion using the methods isDirectory(), File.list() etc. Please help me to impleme

  • Enhancement of Pages in ADF

    Hi, - How can i change look & feel of Page in ADF. - How can i place fields on different places as we do in HTML pages by creating a table. It does not give that facility when we create Form by dragging it from Data Control. - How can we increase/dec