How to convert URL to its domain name

Hi,
I need to get the client machine name to track who had logged on to the website. I know how to get the url using the request as : request.getRequestUrl(), but is there a way i use this information to get the domain name for the url?
Thanks a lot.
cc

Well if you have the actual URL, then can't you just parse the string, extracting the portion after the last dot for example?
Also, you may want to take a look at the java.net.InetAddress class --it has static methods for returning both the IP and the name of a computer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How do i use my own domain name with creative cloud?

    how do i use my own domain name with creative cloud?
    i don't want to post web pages from behance.net. i want to use the domain name i have for my material. is there a hosting service for this? if not, can someone give me some pointers so I can publish?
    thanks!!
    Lori

    http://forums.adobe.com/community/behance is where you would ask about publishing to "something else" from that program
    I use OLD Dreamweaver, and upload my HTML with an FTP program to my own web site... I will GUESS you can do that, if you can save HTML to your hard drive to then be able to upload to your web site

  • OBIEE presentation url to use domain name

    Experts,
    I would like to make OBIEE presentation url to use domain name instead of ip address.  What and where is the change required for this?
    Currently the url is like this - http://10.20.123.456:9704/analytics/saw.dll?Dashboard and we want something like this http://myobiee.com:9704/analytics/saw.dll?Dashboard
    OBIEE : 10.1.3.4
    Regards,
    Sarvan

    Hi Vamsy,
    Thanks for your response.  I tried your suggestion in my local installation, but no luck.
    Network Error (dns_server_failure) 
    Your request could not be processed because an error occurred contacting the DNS server.......
    Am I missing something here.  Do you think it is this simple to achieve?
    Regards,
    Sarvan

  • How do I use my own domain name  with Mac server with iWeb

    For a number of years I have had my own domain name that when typed into a browser it would redirect the browser to my site on the .Mac server. I hear with iLife ’08 I can have my own domain name hosted by .Mac so I know longer have to have the long addresses for each pages the I have now for my site (i.e. the http://web.mac.com/thewildhearts/WildheartPhotography/NatureGalleries.html). How do I go about getting my domain name (wildheartphotography.com) so that Mac will host it and do I need to notify the current host that Mac will be hosting my site now?
    Thanks. I really appreciate the help I get from this forum.
    Pat

    It's very easy, really. You go to your domain control and redirect the address. IPower, for example points the domain name very easily: you just type in the URL of your site and it will point to your mac server.
    I've used GoDaddy before and it is a bit more difficult to "point".

  • Unable to access the server with its domain name.

                       Hi ,
    I have configured the site VPN between to cisco ASA and everything is working fine,but if i access the server in url with ip address http://10.XX.XX.XX:123 i am able to connect the server but if i m trying with server name i.e DNS name it doesnt work for eg : http://abcdef:123  .
    what could be the issue kindly let me know

    The issue is likely dns.  Check the dns settings on the device you're trying to access the server's url with.  Can you succerssfully do an nslookup on the server's domain name?  You'll need the machine to have at least one dns server defined in its dns settings that can resolve the web server's domain name to an ip address.  Hope that points you in the right direction.

  • How to deny other hostname or domain name pointing to same IP address in MySQL

    Im using Cento 6.5
    and
    MySQL version 5.6.25
    For example:
    IP address:
    192.168.1.250
    this IP has 2 domain name
    1. db.mysqldatabase.com
    2. web.mysite.com
    i want to block or deny the 2nd domain name in database hostname
    if i update our Mysql Connection should be like this
    $connection=mysql_connect("db.mysqldatabase.php","userdemo","demo");
    $db=mysql_select_db("db_demo",$connection);
    ?>
    But if i use also web.mysite.com i still connected i want to use web.mysite.com as my url website
    and db.mysqldatabase.com as my database connection.
    is it possible?
    Thanks
    This topic first appeared in the Spiceworks Community

    Hi Linda, are you referring to the Domain Name showing in the Connectivity Tab of the Linksyssmartwifi utility? The Domain Name is automatically assigned by Comcast. This setting will depend on the type of internet connection that is set up for you by your ISP. Can you give me more details of your Internet connection set up? I'd like to see how it goes. Did Comcast provide you a new Domain Name?

  • How to set-up Fully Qualified Domain Name in WIN2k3?

    Dear Experts,
    Admin, please rederict if this is the wrong forum.
    I need to set up a FQDN for our one host demo system running on Windows Server 2k3. How do I set it up (without compromizing our system)? On this host we have ECC 6.0 and GRC running.
    We don't have a registred domain.
    Kind Regards,
    Vit Vesely

    Hi,
    Set your domain name as FQDN (fully qualified domain name.)
    1) start the transaction RZ10.
    2) select INSTANCE Profile name where your server name is given.
    3) Select Extended Maintenance.
    4) Click on change button.
    5) Change parameter icm/host_name_full to FQDN
    6) Copy your settings with new version number.
    7) Activate that version.
    8) Restart your WAS (Transaction code SMICM -> Administration Menu).
    Check that the following services are active in your ICF setting (transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    Set Request Hanlder Class, add Standard Class provided by SAP to default\sap\bc\bsp\sap service. Right click on default\sap\bc\bsp\sap service service.
    Now select display service, go to Handler Tag, and add the class CL_HTTP_EXT_BSP, which is a default HTTP request handler class.
    Specifically for fully qualified domain names problems,
    see:
    434918 Configuration for fully qualified host names for BSP
    654326 Domain restrictions in a portal environment         
    654982 URL requirements due to Internet standards          
    677118 SP31  >: Fully Qualified Domain Names Check         
    763427 Error message for domain name with underscore  
    Regards
    Krishna

  • How do you get a new domain name?

    I know it must be very simple to do but I just can't understand this process.
    Do you have to buy a domain name from places like godaddy.com first?
    Or can you created it on MobileMe for free?
    Does it take 48hours to take effect?
    Thanks

    All domain names must be purchased from an domain name provider. GoDaddy.com is just one of many providers.
    Once you purchase your name and publish the site you can set up MobileMe to use that domain name in one of two ways:
    1 - using the CNAME feature of MobileMe. These documents describes how it is done:
    http://docs.info.apple.com/article.html?path=MobileMe/Account/en/acct17114.html
    http://help.godaddy.com/article/4100
    2 - using the regular domain name forwarding like this example thru GoDaddy.com (this assumes you purchase the name thru GoDaddy) as seen in this screenshot:
    Click to view full size
    OT

  • How to retrieve the fully qualified domain name from the IP Address?

    Hi,
    How can i retrieve the commplete host name along with the domain name (something like x.y.com) of a server?
    I tried using the InetAddress.getHostName(), getCanonicalHostName(), etc but it retrieves me only the host name (only x in x.y.com)
    Is there a way to solve ?
    Thanx and Regards
    Biju Nair

    getInetAddress() of Socket Class will return the remote IP address in a InetAddress object.
    Use the object with the getCanonicalHostName() of InetAddress class.
    I may be wrong though. Cheers!

  • How to find URL of ITS

    Hello experts,
    I have to assign URL of ITS to the logical system using t-code crms_ic_cross_sys.
    This logical system will then be used in configuring transaction launcher to call a ABAP report program.
    Currently I am giving the URL as http://isvsapcrmdev.ad.infosys.com:8001//sap/bc/gui/sap/its/webgui/!?transaction=IC_LTXE&okcode=ICEXECUTE.
    But a 404 error is coming when this link is executed and in UI also stating 'The requested resource does not exist.'.
    Please tell how the URL of ITS is created as this is not working.
    Thanks
    Abhi

    Use only one "/" after http://isvsapcrmdev.ad.infosys.com:8001
    (I checked it and double // doesn't matter)
    OK... Next things to check...
    Service webgui in SICF is activated and published?
    What about access to the object "IC_LTXE" ? Check this authorisation too...
    Edited by: drabas on Jun 16, 2010 11:06 AM

  • How to change IP, Hostname and domain name for Oracle Application R12

    Hi,
    I'm new to Oracle, we used to have one production and one test server for Oracle Application R12, but the test server was corrupted, so we decided to clone production server and create a new test server, after cloning and creation of test server, how should we do to change IP address, hostname and domain name for test server?
    Our production and test server environment is:
    Linux Enterprise AS 2.6.9
    Application module: E-Business Suite Treasury only
    Your advice will be much appreciated.
    Regards,
    Kenneth
    Edited by: 850209 on Apr 7, 2011 5:37 PM

    850209 wrote:
    Hi,
    There are few tnsnames.ora and listener.ora files in the system, how to know which one are effective? If I change tnsnames.ora hostname entry, do I need to change listerner.ora file also?
    Thanks.
    Regard,
    Kenneth.tnsnames.ora is used only by client processes. listner.ora is used only to configure the listener, and that is a server side issue only. In addition, the listener can start without any listener.ora at all, using all default values. See my discussion of tns issues at edstevensdba.wordpress.com
    If you are using dbcontrol, you will most likely need to reconfigure it, using the emca utility.

  • How to convert curthread- t_sysnum to syscall name

    Hi,
    I'd like to convert (kthread_t *)->t_sysnum to syscall name, can I search/walk through sb_hashtab or any other list in Dtrace?
    I.e.:
    *sb_hashtab::list struct bind b_next b_name|::print -atd struct bind{    300000e0180 struct bind *b_next = 0x300000e03c0
    300000e0188 char *b_name = 0x30000100008 "lwp_mutex_init"
    300000e0190 char *b_bind_name = 0
    300000e0198 int b_num = 0t252
    300000e03c0 struct bind *b_next = 0x300000e0900
    300000e03c8 char *b_name = 0x300000ee888 "accept"
    300000e03d0 char *b_bind_name = 0
    300000e03d8 int b_num = 0t234
    <snip>
    Or, if I save the contents of /etc/name_to_sysnum in a ksh's array prior to calling dtrace(1m), I see that "scalar" shell variables are accessible via single quotes, i.e. '$var', but how can I access array syscalls[] using (kthread_t *)->t_sysnum as a index?
    I.e.:
    #!/usr/bin/ksh
    OIFS=$IFS
    IFS="
    for line in `cat /etc/name_to_sysnum`
    do
    sysnum=`echo $line|awk '{print $2}'`
    sysnam=`echo $line|awk '{print $1}'`
    syscalls[sysnum]=$sysnam
    done
    IFS=$OIFS
    /usr/sbin/dtrace -Cs <( print -r '
    sched:::on-cpu
    /'$opt_cpu'/
    this->nlwp = curthread->t_procp->p_lwpcnt;
    this->syscall = curthread->t_sysnum;
    @oncpucnt[execname, pid, this->nlwp, this->syscall] = count();
    Thanks,
    Rob

    Check out this one:
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HOID=506500000008000000943B000​0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONT​EXT_QUESTION_0=string+to+VISA+resource+name&USEARC​HCONTEXT_QUESTION_S=0
    MTO

  • How can I use a custom domain name?

    I noticed that when I try to publish my website, it prompts me to provide a domain name which will have ".businesscatalyst.com" tagged on the end. Is there a way to publish this site to a domain name I already own?

    After you publish to a free temporary BC site, you can either pay for the hosting on BC, or if you have a subscription to Muse or Creative Cloud you can redeem one of your included site hosting credits to push the site live, then you can assign your domain name to the site.
    http://helpx.adobe.com/muse/tutorials/upgrading-launching-your-muse-site.html

  • How to set Netbios/Partial Qualified Domain name for a Mac?

    Is it possible to set a Netbios/Partial Qualified Domain name for a Mac the way one sets it for a PC? If so, where can this be set? Apparently, this is what my router uses to report clients connected by DHCP.
    Mike

    You're looking for something completely different if
    what you're after is to have your DHCP server (your
    router) report your computer name.
    yep - that's what I'm looking for but everything else didn't pan out so I'm following up the suggestion of our IT guy (which is that it reports the Netbios name).
    I don't know what brand or model of router you're
    using but with a Linksys brand router it reports the
    yep - I've got a Linksys, about 2 years old (802.11b).
    computer name, which is set on your Mac under Apple
    menu --> System Preferences... --> Sharing. The
    Linksys router will report the computer name
    typically found under Status --> Local Network -->
    DHCP Clients Table.
    nope - I've got it set as "Michael Levin Laptop", but the Linksys router shows it (and all of the other Macs on the network) as "¸#Єª"... Any way to debug this?
    What you'll notice is that none of this has anything
    to do with Windows. Today's basic networking is
    platform agnostic.
    I thought so; it was a desperation move, based on my IT person's suggestion...
    Thanks,
    Mike

  • How to allow website using the domain name in zone based firewall ?

      Hi,            
    I need to give a restricted access to internet by allowing few sites. How will I do it with the url of a particular website. If I put the url in the configuration it resolves to only a single IP. How will I do it for a website like google where there are numerous number of IP addresses.
    Regards,
    Tony

    Hi Bro
    Please kindly refer to this URL https://supportforums.cisco.com/docs/DOC-17014
    I hope this is what you're looking for :-)
    P/S: If you think this comment is helpful, please do rate it nicely :-)

Maybe you are looking for

  • Opening url rebuffering stream when previewing songs

    How can I fix music previews that play for 3 seconds and then give me an error: opening url rebuffering stream? I never had this issue, and haven't changed anything. What's wrong?

  • Help needed for a port scanning project

    Thank you first. This is actually my shcool project. we are writing a little port scanner in Java. I want to know how to tell the OS of a target machine. tell the UDP and TCP ports( which are UDP ports and which are TCP ports). My understanding of te

  • Variable with range- only 1st value used in manual planning ?

    Hi, We're trying to define a column in a manual planning layout that will represent a YTD total.  We have defined a variable  for 0fiscper that contains the range of periods we require in the YTD total.  When we execute that manual planning area with

  • Number of elements in an enum

    Is there a way to get this? Like if you have this enum: private enum Fish { TUNA(); BASS(); SHARK(); Fish() { }It would be three. Thanks for any help.

  • Webdynpro application execution

    Hi All, Is it possible to achieve below scenario? I have created custom web-dynpro application to update cats. Application is accessible by the employees through PORTAL but employees are not having enough authorizations to update cats and client is n