How to set source ip in JNDI DNS

hello everyone,
As we known the linux command dig can set sourceip with -b option for a dns query.
examples:
dig @DNSSERVER -b 202.16.32.24 www.google.cn
so,how can i set a sourceip for a dns query in JNDI?
Is anybody help me?

Thanks a lot .
it work well for me now .
i have a another question.
i set the nat to gloable ip .and it works.i set it by the Cisco Configuration Professional
in the edit the static nat.
but there is a abnormal .
when the electronic is down. the setting change to the old one.
so what is the problem?

Similar Messages

  • Studio Creator - How to set -source

    Trying to compile a Java 5 style project the studio creator suggests
    to set
    ' -source 1.5'
    Where exactly is this to be set?
    Urs

    OpenZoom currently only has limited support for Deep Zoom Collections. To find out more, check out the following two community threads:
    http://getsatisfaction.com/openzoom/topics/working_with_output_from_deepzoom_composer
    http://getsatisfaction.com/openzoom/topics/deep_zoom_collections_support_for_openzoom

  • New to workshop: how to set source file path

    Hello,
    I am new to workshop. I used to use Jdeveloper where I can set project settings to specify java source root and html source root. that way, my source code does not need to be under the standard directory app/project/src/....
    I am wondering if workshop can do the same thing?
    I tried to use import function, but it only copy the files over to its standard directory.

    Hello,
    I am new to workshop. I used to use Jdeveloper where I can set project settings to specify java source root and html source root. that way, my source code does not need to be under the standard directory app/project/src/....
    I am wondering if workshop can do the same thing?
    I tried to use import function, but it only copy the files over to its standard directory.

  • How to set source in VideoPlayer via actionscript?

    Hi,
    I'm trying to play video in spark.components.VideoPlayer by setting its source property. However, on playing the video doesn't play and comes out as garbled. Am I missing something here?
    Here is the source code-
    <?xml version="1.0" encoding="utf-8"?>
    <!-- controls\videoplayer\VideoPlayerEvent.mxml-->
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import org.osmf.events.MediaPlayerStateChangeEvent;
                import org.osmf.events.TimeEvent;
                import spark.components.VideoPlayer;
                protected function vpCompleteHandler(event:TimeEvent):void {
                    myTA.text = "Video complete - restarting."
                protected function
                    vpMediaPlayerStateChangeHandler(event:MediaPlayerStateChangeEvent):void {
                    if (event.state == "loading")
                        myTA.text = "loading ...";
                    if (event.state == "playing")
                        myTA.text = "playing ...";
                private function onPlayVideo(): void {
                    videoPlayer = new VideoPlayer();
                    videoPlayer.source = "file:///D:/shared/work/data/test/original/bkb2.flv";
                    playerContainer.addElement(videoPlayer);
                    //player.
                private function onStopVideo(): void {
                    videoPlayer.stop();
                private var videoPlayer:VideoPlayer;
            ]]>
        </fx:Script>
        <s:VGroup id="playerContainer" verticalAlign="middle">
        </s:VGroup>
        <s:HGroup>
            <s:TextArea id="myTA" width="350" height="25"/>
            <s:Button label="Play Video" click="onPlayVideo();"/>       
            <s:Button label="Stop Video" click="onStopVideo();"/>       
        </s:HGroup>
    </s:WindowedApplication>
    Thanks in advance,
    Ramashish

    You can access the columns through the dataGrid.columns array
    property.
    Get a reference to that array from the DG into a variable,
    modify the column elements as desired through that var, then
    re-assign the var to the dg.columns property. So you are close:
    var aColumns:Array = dataGridID.columns;
    var dgc:DataGridColumn = aColumns[1];
    dgc.headerText = "this is column 1";
    dataGridID.columns = aColumns; //this step is required!
    Tracy
    Tracy

  • How to set source system inactive

    Hi experts,
    Can someone please tell me how to turn a source system to inactive???
    Thanks!
    Artur.

    Hi
    You cannot Inactivate the Source System -- Try removing the RFC connectivity between the systems
    In BI, SM59, delete your R/3's connection entries.
    In R/3, SM59, delete your BI's connection entries.

  • JNDI/DNS Provider - How to get TTL & other header info ?

    Hi,
    I am using JNDI/DNS Provider for accessing DNS Records from DNS Server. After the DNS lookup, the Attribute collection received from JNDI/DNS Provider does not contain TTL information for SRV records. Further investigation shows that JNDI/DNS Provider only exposes "RData" section of DNS UDP Packet Response through Attributes & its values. The TTL comes in the "Header" section of DNS UDP Packet Response and not included in the Attributes & its values.
    When I dig into the source code of JNDI/DNS Provider, it is clear that TTL value is stored in the ResourceRecord class. But there are no get methods for it. Even worse, there does not seem to be ways of getting the collection of ResourceRecord objects!!. Most of the classes / functions in JNDI/DNS provider are either package scoped OR private scoped.
    Do anybody know how to get the TTL for SRV records ?. Or, is it not possible at all ? (That means should I move to other DNS libraries like DnsJava ?)
    Thanks,
    Ram.

    Thanks v.r. for your quick reply. In fact we are using the TTL SOA for the time being. But when it is overridden in specific SRV / A / AAAA records, we are not able to get that value. Any idea how to get these overridden record specific TTL values ?
    Thanks,
    Ram.

  • How to set up a mail server with a private DNS and relay over a public mail

    How to set up the mail server that we can send and pick up emails inside and outside?
    Our private network has the DNS name dnsname1.private.
    We have our privat DNS Server and he can forward requests to outside over our router.
    Our public emails are hosted by an internet provider. This dns name is dnsname2.com and dnsname2.org.
    How we have to set up our mail server that we can pick up our emails from our public dnsname2.com?
    And when we write an email how we have to set up it that the dnsname is dansname2.com and not dnsname1.private?

    If you want to move your mailservice to your own (internal) server, start by making sure you can recieve traffic on port TCP 25 (SMTP). Some ISPs blocks this port, especially on "non business" connections.
    Can you send mail from your LAN directly to where your mail is hosted using port 25 TCP or do you have to relay via your ISP?
    You have a static public IP?

  • How to set up DNS behind a NAT router...

    I am trying to configure DNS in Panther Server as the SOA for my domains and as a LAN name server. I've read several explainations about setting up DNS including technical document 106853 "How to set up DNS in a NAT environment" which says:
    Note: For Mac OS X Server 10.3 or later, you should use the Server Admin
    application to configure DNS and NAT. Please see the Network Services
    Administration Guide for additional information.
    Seeing how picky BIND is, this sounds like a good idea, except I can't configure views like that.
    Questions:
    1) What happens if I create an A record in my main domain for newmac.mydomain.com-->10.0.1.2? People outside the LAN can't get to it, right?
    2) Can I create really simple names for the LAN like newmac-->10.0.1.2?
    Thanks!

    You can use "system-config-network" command to configure your DNS configuration.

  • 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 set image source path in formsweb.cfg file in forms 11g

    Hi,
    I had written HTML code in the formsweb.cfg file in forms 11g. In the below code i am unable to retrive image file(i.e., .gif, .jpeg) from the server or local machine.
    In the below HTML code i set image source in the image tag as below:
    <img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF"
    Is this correct path to fetch the images from the server or local machine .
    Please help me out how to set path for image in html or is there any alternate process to retrive images.
    Here is the code :
    [INDIVIDUALUAT]
    workingDirectory=D:\Aims10dev\Work
    form=LMstartup.fmx
    userid=rmenu/rmenu@RLIFEQA64
    codebase=/forms/java
    imageBase=codebase
    width=1005
    height=750
    WebUtilArchive=/forms/java/frmwebutil.jar,/forms/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar,life-icons-round.jar,Agilis_Icon.jar,life_Icon.jar,personalize.jar,hyperlink.jar,amazingbutton.jar
    archive=frmall.jar
    separateFrame=False
    lookandfeel=Generic
    EndUserMonitoringURL=True
    usesdi=yes
    #HTMLbeforeForm= <table width="1005" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="/forms/html/agilis-life-logo.gif" width="200" height="80" /></td><td width="10"><img src="/forms/html/agilis-life-new11_02.gif" width="36" height="80" /></td><td width="805" valign="top" background="/forms/html/agilis-life-new11_03.gif"></td></tr></td></tr></table>
    HTMLbeforeForm=<body topmargin="0" leftmargin="0" > <table width="1005" height="100" border="0" cellspacing="0" cellpadding="0"><tr><td width="200" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-logo.gif" width="200" height="80" /></td><td width="10" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_02.gif" width="36" height="80" /></td><td width="550" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_03.gif" width="550" height="80" /></td><td valign="bottom"><table width="219" height="90" border="0" cellspacing="0" cellpadding="0"><tr><td height="36" valign="bottom" align="center"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agile-logo.jpg" height="36"></td></tr><tr><td height="10" valign="bottom"> <div align="right"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none; color:#00000; " >Home | Change Password | Logout</span></div></td></tr><tr><td colspan="3" valign="bottom"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF" width="100%" height="39" /></td></tr></table></td></tr></td></tr></table></body>

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • In ActiveX(OCX), How to Set "Choose paper source by PDF page size"

    Using Adobe Acrobat Reader ActiveX(ocx) in Delphi 7.
    I want to set "Choose paper source by PDF page size" value, in Source Code dynamically.
    Do you know how to set in Source Code?  Not in Print Dialog Window.
    Please help me. (.net or C# or any language.)

    I have this exact same question. Does anyone know if this is possible?
    Thank you,
    Ryan

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • How to set to display  rows no. in source program

    how to set to display  rows no. in source program ?

    Hi,
    If u r working in 4.5B or older then u ll get it automatically.
    If u want to get numbering in 4.7 or ECC u just do this.
    Utilities -> settings -> ABAP editor
    Then u can select new editor or lod and u can find lot of options there.
    Regards,
    Subbu

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

Maybe you are looking for

  • How do I get "Sufficient Permissions" to manage my own images?

    I cannot manage some of my images in Bridge CC. When I attempt to delete, move or rename them I get the message: "The operation cannot be completed because you do not have sufficient permissions." It's my computer. I'm the only user. How do I get "su

  • Best practise BW Query design for Crystal Reports integration

    Hi all, I am looking for a guide on best practices when designing a BW Query to be used as data foundation for a Crystal Report. The scenario is that I am responsible for developing the Crystal Reports part, but not the BW Query part, therefore I wou

  • Deleting imported pictures

    Deleting imported pictures from iPad?

  • Exception when "Edit Maps and Interface"

    This is pretty uniform on all .jws I tried. Right click on the client interface and choose "Edit Maps and Interface" yields: Unexpected exception: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:394) at java.lang.Inte

  • Selecting the 'right' column in a FMS window

    Hello, If I have a FMS showing up say 3-4 columns in the search results.. say Customer name, Invoice number, value and Due Date... How to set the user to select values between one of these columns. At the moment, clicking on the row selects the First