Urgent: How to list all alias for a server throw DNS query?

Hi
Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
It doesn't work with InetAddress it return a single result.
Best regard

InetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read.

Similar Messages

  • Urgent: How to Delete all Cards for a Crawler through SQL

    Folks,
    Good morning! I am trying to delete 2 million cards (should have been expired, and makes the search index rebuild take days) in a single folder in the Knowledge Directory in the 6.1 portal. The job to delete the folder ("Apply Later") has been running half of yesterday and then all night with nothing being logged in PTSpy or the joblog, little or no CPU activity.
    Does someone have a DB query that can zap the cards for this crawler? I know how to select the cards for a particular crawler ID, but don't understand how to delete them properly such that all references to those cards in other tables also get removed.
    Much appreciate !!!
    Cheers!
    Edited by: Plumtree on Jan 21, 2009 7:28 AM (fixed an 'oops')

    You obviously are looking for someone who has done and tested this before, which I have not...but when I delete a folder the following happens for each card:
    delete from:
    PTFolderCards
    PTCards
    PTCardProperties
    PTCardSecurity
    PTCardStatistics
    PTMigration
    update:
    PTInternalCardInfo (RefreshDate = null, ExpirationDate = null, RefreshRateUnits = null, RefreshRateNum = -1, MissingDeleteUnits = null, MissingDeleteNum = null)
    PTCardStatus (indexing status set to 3)

  • How to list all properties in the default Toolkit

    I would like to know what kinds of properties are stored in the default Toolkit (Toolkit.getDefaultToolkit()). I don't know how to list all of them. Toolkit class has a method getProperty(String key, String defaultValue), but without knowing a list of valid keys, this method is useless.
    Any idea would be appreciated.

    Here is a little utility that I wrote to display all the UIDefaults that are returned from UIManager.getDefaults(). Perhaps this is what you are looking for?
    import javax.swing.*;
    import java.util.*;
    public class DefaultsTable extends JTable {
        public static void main(String args[]) {
            JTable t = new DefaultsTable();
        public DefaultsTable() {
            super();
            setModel(new MyTableModel());
            JFrame jf = new JFrame("UI Defaults");
            jf.addWindowListener(new WindowCloser());
            jf.getContentPane().add(new JScrollPane(this));
            jf.pack();
            jf.show();
        class MyTableModel extends javax.swing.table.AbstractTableModel {
            UIDefaults uid;
            Vector keys;
            public MyTableModel() {
                uid = UIManager.getDefaults();
                keys = new Vector();
                for (Enumeration e=uid.keys() ; e.hasMoreElements(); ) {
                    Object o = e.nextElement();
                    if (o instanceof String) {
                        keys.add(o);
                Collections.sort(keys);
            public int getRowCount() {
                return keys.size();
            public int getColumnCount() {
                return 2;
            public String getColumnName(int column) {
                if (column == 0) {
                    return "KEY";
                } else {
                    return "VALUE";
            public Object getValueAt(int row, int column) {
                Object key = keys.get(row);
                if (column == 0) {
                    return key;
                } else {
                    return uid.get(key);
        class WindowCloser extends java.awt.event.WindowAdapter {
            public void windowClosing(java.awt.event.WindowEvent we) {
                System.exit(0);
    }

  • How to list all the rows from the table VBAK

    Friends ,
    How to list all the rows from the table VBAK.select query and the output list is appreciated.

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • How to list all files in a given directory?

    How to list all the files in a given directory?

    A possible recursive algorithm for printing all the files in a directory and its subdirectories is:
    Print the name of the directory
    for each file in the directory:
    if the file is a directory:
    Print its contents recursively
    else
    Print the name of the file.
    Directory "games"
    blackbox
    Directory "CardGames"
    cribbage
    euchre
    tetris
    The Solution
    This program lists the contents of a directory specified by
    the user. The contents of subdirectories are also listed,
    up to any level of nesting. Indentation is used to show
    the level of nesting.
    The user is asked to type in a directory name.
    If the name entered by the user is not a directory, a
    message is printed and the program ends.
    import java.io.*;
    public class RecursiveDirectoryList {
    public static void main(String[] args) {
    String directoryName; // Directory name entered by the user.
    File directory; // File object referring to the directory.
    TextIO.put("Enter a directory name: ");
    directoryName = TextIO.getln().trim();
    directory = new File(directoryName);
    if (directory.isDirectory() == false) {
    // Program needs a directory name. Print an error message.
    if (directory.exists() == false)
    TextIO.putln("There is no such directory!");
    else
    TextIO.putln("That file is not a directory.");
    else {
    // List the contents of directory, with no indentation
    // at the top level.
    listContents( directory, "" );
    } // end main()
    static void listContents(File dir, String indent) {
    // A recursive subroutine that lists the contents of
    // the directory dir, including the contents of its
    // subdirectories to any level of nesting. It is assumed
    // that dir is in fact a directory. The indent parameter
    // is a string of blanks that is prepended to each item in
    // the listing. It grows in length with each increase in
    // the level of directory nesting.
    String[] files; // List of names of files in the directory.
    TextIO.putln(indent + "Directory \"" + dir.getName() + "\":");
    indent += " "; // Increase the indentation for listing the contents.
    files = dir.list();
    for (int i = 0; i < files.length; i++) {
    // If the file is a directory, list its contents
    // recursively. Otherwise, just print its name.
    File f = new File(dir, files);
    if (f.isDirectory())
    listContents(f, indent);
    else
    TextIO.putln(indent + files[i]);
    } // end listContents()
    } // end class RecursiveDirectoryList
    Cheers,
    Kosh!

  • NOT WORKING -How To Display All Comments for a Planning Package

    Hi All,
    I am using How to Document "How To Display All Comments for a Planning Package" to display comments for list of "cost center" against different "fiscal/year" for Key Figure "Budget Amount".
    Below is how the Layout looks like where comments are posted against Cost Center- year combination.
    Cost Center                          2007     2008     2009     2010     2011
    3          2.00     2.00     2.00     2.00     2.00
    4          2.00     2.00     2.00     2.00     2.00
    6          2.00     2.00     2.00     2.00     2.00
    7          2.00     2.00     2.00     2.00     2.00
    This case is very similar to the example given in how to document but after following all the steps correctly in the document and also followings various forum links such as below , I am not able to display the comments for list of Cost Centers.
    "How to...BSP display comments"...problem with row comment
    Below are the issues being faced:
    1) When i save the comments , the icon for comments (indicating that some comments have been entered) is not shown against selection of Cost Center-Year although the comment is saved.Comment are  also visible in BPS0.
    2) On execution "Web interface could not be loaded" - is the message that is shown in the area where BPS application should show all the comments.
    Highly Appreciate any help with issues mentioned above.
    Kind Regards,
    Robin Johri

    Hello Robin,
    1) please check if you set the row/cell selection property correctly for the layout component in the web interface.
    2) the error does not make sense since the comments are displayed in an iframe using a BSP application, not a web interface. Check the URL in the HTML text component.
    Regards,
    Marc
    SAP Techology RIG

  • Require list of all events for Windows Server 2008 Active Directory

    Hi all,
    I require list of all events for Windows Server 2008 Active Directory. Event Log name for Active Directory log is "Directory Service".
    Regards,
    SR

    Hi,
    Thanks for your posting.
    Do you mean you want to list all Active Directory logs into one file named “Directory Services”?
    If that, it’s hard to achieve. There are kinds of Active Directory logs stored in different locations and they have different file formats. It’s hard
    to collect them into one file.
    Active directory records events in the directory services log in Event Viewer. By default, Active Directory records only critical error events. To instruct Active
    Directory to record other events in the directory services log, we need to modify registry.
    For more information please refer to following MS articles:
    Active Directory Diagnostic Logging
    http://technet.microsoft.com/en-us/library/cc961809.aspx
    How to configure Active Directory diagnostic event log
    http://support.microsoft.com/kb/314980
    Lawrence
    TechNet Community Support

  • Sunone Messaging Server 6.1--How to list all mail user's last login time

    hi,i want to know how to list all the mail user's last login time.
    There are more than 100000 mailbox accounts on our mail server,
    i want to know which account is not used for more than 2 or 3 years.
    thanks.

    http://wikis.sun.com/display/CommSuite/imsconnutil
    Somchai.

  • How to list all calendars that are shared to a specific user?

    Hi,
    Using Exchange Management Shell/Powershell, I want to list all calendars that are shared to a specific user 'myuser'. 
    I have tried different approaches; list all calendars for all users and then figure out which ones are shared to 'myuser', list all mailboxfolders for 'myuser' with path 'calendar' and sort out the shared ones, ... No luck so far.
    Anybody?
    babu

    Hi
    If you try this command:
    Get-MailboxPermission MyUser

  • In need of a report that will list all vendors for all parts in our plant.

    Can anyone tell me if there is a report in SAP that we can use to list all suppliers for a given material? We are operating in SAP ECC6.0 and need a report that will list all vendors that the company has used for a given part. Is there a standard report in SAP that pulls information from purchasing info records?  Woud this be  a custom report?     I have tried using MCE3. 
    Also does anybody know of any SAP consultants that can help us create custom reports

    For the list of vendors for the material - Me03 if source list is maintained
    For list of vendors with info record - Me1m
    For list of vendors with PO - Me2l
    If you can give the correct requirements then your Technical consultant will develop a report in the required format.

  • How To… Display All Comments for a Planning Package

    Hi,
    I have the How-to guide mentioned in the subject and have now moved onto BI7. Is the guide still applicable in BI7 and how would I go about implementing the above How-to in IP instead of BPS?
    Thanks,
    Ale

    Thanks Marc.
    I will use BW-BPS for the time being as I've seen screenshots of the solution in the how-to. Still need to answer the question here:
    How To. Display All Comments for a Planning Package
    As I have no idea how to achieve the functionality detailed in the thread above.
    Thanks for your time Marc,
    Regards,
    Ale

  • Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    You can find all forums here:
    https://forums.adobe.com/welcome

  • How's this partition table for my server?

    How's this partition table for my server?  Web/DNS/DHCP/Mail Server.
    hdd1: ~8gb total
    /boot - 100mb
    swap - 1gb
    / - rest of drive
    hdd2: ~155gb total
    /var - whole drive
    This is a Compaq ProLiant 5500 server with 10 drives.  Will most things be installed inside /var or what?

    Zetsumei wrote:Web/DNS/DHCP/Mail Server.
    Web = /srv
    DNS = /var
    DHCP = /var
    Mail = Depends which package you use. I use postfix and told it to use /srv
    I would half your swap, reduce /var and put the extra space into /srv
    Also create a separate /tmp and /home to prevent accidental or deliberate DoS attacks by filling your / partition
    Here's what I use on my Web / DNS / FTP server:
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda 493M 176M 317M 36% /
    /dev/xvdc 31M 674K 29M 3% /boot
    /dev/lvmData-home 62M 26M 34M 44% /home
    /dev/lvmData-usr 2.0G 848M 1.1G 45% /usr
    /dev/lvmData-tmp 496M 20M 451M 5% /tmp
    /dev/lvmData-srv 1.5G 769M 667M 54% /srv
    /dev/lvmData-var 496M 231M 241M 49% /var
    /dev/lvmData-pacman 384M 303M 82M 79% /var/cache/pacman
    /dev/lvmData-backup 5.5G 4.6G 565M 90% /mnt/backup

  • How to download ALL MAIL from the server in a Mail app ?

    How to download ALL MAIL from the server in a Mail app ? I want all the mail messages, sent, received ON my computer... Thanks much !!!!!!!

    In Mail's Accounts/Mailbox Behavior preference pane make sure these 4 checkboxes are NOT checked:
    OT

  • Creating aliases for a server in DNS

    Hello,
    We are developping a BI solution. We have 4 different environments/domains : development, test and acceptance and production. The servernames differ in each environment. For example the server in development is called SRVDEV10 while the server
    in test is called SRVTEST21. The full names will be like SRVDEV10.development.local and SRVTEST21.test.local
    Now I would like that the network administrators to create a DNS alias called BI_Server.
    If I am in the development environment BI_Server should point to SRVDEV10 and if I am in the test environment BI_Server should point to SRVTEST21.
    Is something possible ? Should they make aliases like BI_Server.development.local : SRVDEV10.development.local and BI_Server.test.local : SRVTEST21.test.local. Those domains are seperated and it should normally not possible to go directly from development
    to test. It is also internal used and not accessable from the outside (internet) 
    Of course I can modify the hosts file but I don't want that.
    What do you think ?
    Constantijn

    Hi Constantijn,
    According to your description, you want to create a DNS alias and point the alias to different servers. The issue is more related to Windows Server DNS, I would like to recommend you post the question in the Windows Server forums at
    https://social.technet.microsoft.com/Forums/en-US/home?category=windowsserver . It is appropriate and more assists will assist you.
    However, if you need to configure hostname alias for SQL Server instance, you can review the steps in this following blog.
    http://blogs.msdn.com/b/dbrowne/archive/2012/05/21/how-to-add-a-hostname-alias-for-a-sql-server-instance.aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

Maybe you are looking for