How to resolve remote computer name

My DNS provider responds "success" to all requests, regardless of whether or not the name is valid. When using a web browser, for example, it will take me to a web page that displays marketing information and Google search results for whatever domain name I tried typing in. This is nuisance, but manageable when working with the web.
However, when dropping to the shell and trying to do something like "ssh {computername}", I am unable to do so because it attempts to connect to the wrong IP address.
How do I get Mac OSX to resolve these names on my local network using Bonjour or some other resolution protocol before sending it off to default DNS?
On Windows, NETBIOS kicks in names are resolved easily. Is something like this possible on Mac?
Message was edited by: parleer

Bonjour would be
computer-name.local
where the .local is the specify info you need.
You could use a different DNS server, such as the OpenDNS.org servers.
System Preferences -> Network -> Advanced -> DNS
Anything you enter will always be used first regardless of what the display says. You can verify this by looking at /etc/resolv.conf
You could also specify a search domain in the same Network DNS system preference. For example you could specify .local so by default Bonjour would be searched if you do not specify a domain in your search names.
Message was edited by: BobHarris

Similar Messages

  • How to resolve a host name from IP using JNDI/DNS service provider

    Hi
    I got two questions on JNDI/DNS service provider:
    1) How to resolve a host name when i got an IP
    I understand How I do it inverse.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://"+server+"/"+domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(host, new String[] {"A"});
    2) This example above works when I specify the domain in the provider url.
    If I am not specifing a domain but only the dns server I got an NameNotFoundException.
    What should I do if I don't got the domain?
    get the availible domains and loop on them?

    Hi,
    if your DNS server supports that, you can do a reverse DNS lookup. This works as follows:
    String server = "your.dns.server";
    String domain = "in-addr.arpa";
    String ip = "4.3.2.1";
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://" + server + "/" + domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(ip, new String[] {"PTR"});1: Use the pseudo-domain in-addr.arpa
    2: Use the reverse IP address for lookup, i.e. if your host has 1.2.3.4, use 4.3.2.1!!
    3: Request the PTR attribute
    see also [http://en.wikipedia.org/wiki/Reverse_DNS_lookup|http://en.wikipedia.org/wiki/Reverse_DNS_lookup]
    Martin

  • How to get a computer name in teststand step ?

    how to get a computer name in teststand step ?

    Hi,
    Use an ActiveX Automation Adapter with the following settings,
    ActiveX Reference : RunState.Engine
    Automation Server: TestStand API (depends on your version)
    Object Class: Engine (IEngine)
    Action: Get Property
    Property: ComputerName
    Then set your Parameters: to pickup the String ComputerName.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • I have a MacBook Pro, how to change the computer name in the "Find Iphone"

    I have a MacBook Pro, how to change the computer name in the "Find Iphone"?

    Thank you for help! I was inattentive reading your answer. The thing which confused me was that I noted in blue. I had to just write in a red box and close the configuration window.

  • How to find remote computer/laptop connected Wired or Wireless?

    hi
    How to find remote computer (more than 1000) workstation connected wired or wireless? can some one give me the script to find
    Regards
    GG

    Thanks for your reply. It gave the output like below. It not mentioned it's connected wired or wireless.. can you give me exact one
    netconnectionid                                                                      
                                                           Bluetooth Network Connection          
    Local Area Connection                                                                    
    Wireless Network Connection                                                                  
    Wireless Network Connection 2                                                                  
    Local Area Connection 3    

  • How to get the computer name using C#?

    Hi all,
    Does anyone know how to get the computer name using c#?
    Thanks

    Try this, string computer_name = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
    Naren.

  • How to change the computer name

    I need to change the computer name but after this I cannot access to the historical data (printing alarms).
    I have already changed the settings in Options->System and restarted the system.
    With MAX 3.0 I can see that all the alarm records are stored with the old computer name \\computer name\process\....
    How can I do to read the old alarms with the new computer name?
    Thank you
    Michael

    Hi,
    When you change the computer name in Options>>System, you are not changing the name of the computer. Rather, you are telling Lookout to log to either a remote or local system. Here are the specifics:
    1. Computer Name: Name you want the traces to appear with (\\computer_name\process\...)
    2. Default Computer: Computer you want to log to. If the name listed here is different than your computer's name (as seen by Windows), then it will attempt to log directly to that remote machine.
    3. Default Path: Directory on either your local or remote machine that you want to log to.
    To change the name of your local computer, you will need to do that in Windows. If you have WinXP, you can do this by right-clicking on My Computer and selecting Computer Name.
    Go
    od Luck
    Mike

  • 2012 R2 RDS Shadowing from Server Manager - how to view client computer names

    Hello,
    I have a 2012R2 RDS session based deployment. We have a few generic user accounts for a production environment where a group of users uses the same username to start multiple RDS sessions. This creates a bit of a challenge when support has to shadow one
    of those sessions because they all appear with the same name: domain\username. The Connections pane in RDS (Server manager) does not list client computer name, which would be the distinguishing factor. The old version of the RDS console (remote
    desktop manager) had this information. Citrix appears to have it as well. Is there a way around this limitation in 2012R2 Server Manager?
    Thanks

    Hi,
    As far as I know, there are two ways.
    1. Use the Task Manager. In the Users Tab, you can see the client name.
    http://social.technet.microsoft.com/Forums/en-US/1d571c01-69ff-4508-af0f-d7eeecd806b6/forum-faq-how-to-manage-rds-user-connections-and-processes-in-a-rds-2012-deployment?forum=winserverTS
    2. Use the Terminal Services PowerShell Module. With the Get-TSSession in PowerShell, we can get the detailed information.
    http://archive.msdn.microsoft.com/PSTerminalServices
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • How to get the computer name in a text box automatically?

    Hi,
    I am using flash cs4 (AS3). How can I get the computer name/username in a text box created for grabbing Username from the computer and show it in the username textbox automatically?
    Thanks.

    You can't running a SWF on a webpage. Can you imagine if a SWF had access to that OS-level information? It breaches everything Flash, browsers and the web stands for, which is "not being an application", therefore it has absolutely no access to your computer. Especially information like your username.
    If you're running a flash projector, that's different. Not that a projector can do that either, but projectors are applications and can be extended by things like MDM Zinc and ScreenTime mProjector. Going that route opens up the constraints on Flash Projectors and lets you tap into things like .dlls. Only via that route are you going to be able to get at such a low level item like the current logged on user.

  • How to get client computer name in Developer 9i

    Hi ..
    I m using developer 9i from several days.But i need to get the client computer name.But i heard that i need to use GetClientInfo java bean to get that.How to use GetClientInfo.What is the procedure to use that?What code i should use?In Sample code in this site..there was a example.But in that example there is nothing clear.What to do and what code should i use?
    Sharif

    This shouldn't be any problems if you'd successfully installed the Forms Demos. Anyhow, another way is to use WebUtil which I'd prefer. There's tons of other interesting and useful functions in WebUtil.
    Also, I'd really, really think about using Forms 10g instead of 9i.
    Regards,
    Martin Malmstrom

  • How to change your 'computer name' ?

    I have just 'migrated' ( using the software install - by a firewire cable ) from my old PowerBook G4 to a MacBook Pro - Everything is fine except now my MacBook Pro is called PowerBook G4 15" on the start-up screen and system profiler title.
    My question is how do you change this 'computer name' ?
    Many thanks in advance.
    Ti-Powerbook/MacBook Pro   Mac OS X (10.4.9)  

    You can change your computer name in System Preferences (found under the Apple menu) in the Sharing pane. At the top of the pane it will say Computer Name: PowerBook G4 15".
    Note that the name can contain spaces. Mine, for example, is Ministry of Magic.
    Delete the current name and enter the new name. Note that you do not have to click the edit button out to the right. That is only useful if you want to change the bonjour address on your local subnet to be something different from NewComputerName.local (where NewComputerName is the new name you just changed it to.
    Hope this helps. Good luck.
    PM G5, PB G4 17", iMac G5 20", iPod 5G 30GB, iPod Nano 1G, iPod Shuffle 2G   Mac OS X (10.4.9)   AirPort Extreme (802.11n) WDS with AirPort Express

  • How to get cleint computer name in Flex

    I am using SBI(Spring BlazeDS Integration) for my project.I need to send the computer name from flex client.I try it with
    Using the Capabilities classFollowing Link Also didnt help for me.....
    http://livedocs.adobe.com/flex/3/html/index.html?content=18_Client_System_Environment_1.ht ml
    If Any body please help me...
    And Following is answer for http://forums.adobe.com/thread/630928?tstart=0
    <mx:DataGridColumn headerText="Allocated Amt"
    editorDataField="text" dataField="allocatedAmt"
    itemRenderer="mx.controls.TextInput" editable="true"/>
    Just replace TextInput--->Your decide controll

    Hi,
    Yes its true,
    But then, brother again I am calling to server,isn't it? Then server will return me his computer name. But I want to get a client computer name.
    hostname is Server Computer name. Isn't it?
    try {
        InetAddress addr = InetAddress.getLocalHost();
        byte[] ipAddr = addr.getAddress();    // Get IP Address
        String hostname = addr.getHostName();   // Get hostname
    } catch (UnknownHostException e) {
    Any way thnx brother....Any ideas from you???
    Happy Codding.......

  • How automatically change the computer name as VM name

    Hi All,
    I need to deploy lot of VM via one VM ,i need to use the newsid with change the computer name like VM name.
    i want to script this by geting the VM name and send it to newsid to change the computer name.
    there is a way to get the VM name from running guest or host.
    Thanks,

    Hi All,
    i can't use template since i have check point on that VM.
    i have one vm called goldenimage load to lib and i have to deploy 8 vm per one host,i must use newsid before i connect that guest machine to network domain,so i what to add to runone registery some script that run the newsid in first time but for each vm am i need to change the computer name according to vm name.
    if the vm name is XPPro-xx-yy(xx-host name yy-vm num) i want that  will be also the name of computer name.
    Thanks,

  • HT3819 How to resolve Remote error message - "This remote has been unregistered from itunes library."

    I am getting this error message on my iPhone 4 - "This remote has been unregistered from "my itunes Library. Plese select another library."
    This happens whenever I try to use the Remote App with my iTunes Library that is set up with Home Sharing on my iMac and iPhone.
    I have updated the OS software on iMac and iPhone, I follow all the directions for both Home Sharing and Remote set-up, I am using the same wi-fi connection, the same Apple ID and password, I have started over by deleteing the Remote App and then downloading it again, going back and putting in the 4-digit code so my iMac will recognize my iPhone, turning off Home Sharing and redoing that -  Something seems to be blocking my iPhone from connecting to my iMac iTunes.
    What is the solution? Any new ideas?

    I had this problem too with an iPhone 5, but resolved it.  This is what worked for me:
    I turned my VPN setting off (in the iPhone, Settings > VPN > toggle On/Off to Off).  After that, I could connect.  I'm not sure what will happen if and when I need to use a VPN, but for now I'm OK.
    Before that, I did the following, but am not sure it mattered:
    I downloaded and installed iTunes 11, unregistered all remotes (in iTunes: Preferences > Devices > Forget All Remotes), in the iPhone, invoked the Remote app and turned on Home Sharing.  During this process I rebooted my computer and the iPhone a couple of times, but am not sure that mattered either.

  • Firmware update failed - how to resolve remotely

    I bought my father an Apple TV so he could subscribe and watch MLB. Everything was working fine until the Apple TV attempted to update itself. Apparently the firmware update failed.  I need to know how to remotely resolve this for him. I can access his PC remotely so I read some info that you can update Apple TV via iTunes. I also need to confirm that the USB socket on the Apple TV is a USB Mini type. I'm assuming you can just plug the Apple TV into a USB socket and then from iTunes initiate the firmware update, much like you do an iPad. He's not very technically savvy, so I need to do this for him or have him call Apple support.
    Any suggestions or help is appreciated. 

    If he hasn't done so get him to do the old fashioned trick of unplugging teh mains power to it and restarting.
    If it restarts correctly the update can be reattempted.
    If it's truly bricked then return to Apple or restore using itunes will be necessary.

Maybe you are looking for

  • InDesign CS5, can't open file due to plugins problem

    Hi folks! I'm on Max OSX 10.5.8 and i am currently using a trial version of CS5 (Design Premium) while work sorts out the cash for the upgrade. I work inhouse, and I needed to send an artwork file to an external design agency. I saved the file in CS5

  • How do I "activate" a new audio channel in the mixer?

    It's late, I've looked high and low in the manual as well as the APTS book, and I can't figure out where to go next. Here's the deal: I set up a User Template for simple songs that only has 8 audio tracks and 8 instrument tracks. Of course, now I wan

  • Use of Zero (0) in Required Drop-Down List Field

    Using LiveCycle Designer ES 8.2.1x and Acrobat Pro Extended 9.1.2. I have a drop-down list (DDL) on a form for entering a quantity.  For certain reasons (i.e., quantity bundling/packages), I want to use a DDL. For one thing, if I set the default valu

  • Create editable content area

    hi, i noticed in dreamweaver there is create editable regions etc. how can i create a page that when the user logs in they can input the text and click update and it will change the public index file? dont really want to go and use joomla or anything

  • HT5167 How do I download wi-fi update V1.0 now that I've updated to OS 10.7.4?

    I just updated my (brand new) iMac to OS 10.7.4 and now I can't download the wi-fi update V1.0 which fixes the issue of not reconnecting to wi-fi network after computer wakes from sleep. Any ideas?