Question about DNS programing

hi, i am creating a DNS query message,
but when i send out my package, in wirshark i capture that in my package the question is unknow
my package carry a domain name like "www.sun.com"
and send to one of the root dns using type a.
but the question is that,
i have to convert the "www.sun.com" into byte array
what i did is "www.sun.com".byteValue,
and directly put it into the question part of my dns query.
seems this part causing the problem, i can not directly convert the string into byte,
have to follow some rule
Does anyone know how to do that?

en.....becuase i want to wirte some code like getbyName does..hoho
i find out finially
03www03sun03com
because
length of www is three, so there is a "3" infornt

Similar Messages

  • Question about the programming of a legend

    Hello everybody,
    I have a question about the programming of a waveform's legend. I
    already asked here in this forum about the legend programming (03)
    months ago.
    I went satisfied but I ve just noticed that this code
    (See Code old_legend_test.llb with main.vi as main function) operates a
    little different from my expectances.
    Therefore I have a new question and I want to know if it
    is possible by labview programming to plot and show, on a waveform
    chart, a signal with activ plot superior to zero (0) without to be
    obliged to plot and show a signal with activ plot equal to zero (0) or
    inferior to the desired activ plot.
    I give you an example
    of what I m meaning. I have by example 4 signals (Signal 0, 1, 2 and 3)
    and each signal corresponds respectively to a channel (Chan1, Chan2,
    Chan3, Chan4). I want to control the legend (activ plot, plot name and
    plot color) programmatically. Is it possible with labview to plot signal
    1 or 2 or 3 or (1, 3) or (2,3) or (1,2,3) or other possible combination
    without to active the signal with the corresponding activ plot zero
    (0)?
    Let see the labview attached data
    (new_legend_test.llb with main.vi as main function). When I try to
    control the input selected values again I get them back but I don't
    understand why they have no effect on the legend of my waveform chart.
    Could somebody explain me what I m doing wrong or show me how to get a
    correct legend with desired plots? Thank by advance for your assistance.
    N.B.
    The
    both attached data are saved with labview 2009.
    Sincerly,PrinceJack
    Attachments:
    old_legend_test.llb ‏65 KB
    new_legend_test.llb ‏65 KB

    Hi
    princejack,
    Thanks for
    posting on National Instruments forum.
    The behavior
    you have is completely normal. You can control the number of row displayed in
    the legend and this rows are linked to the data you send to your graph. Thus,
    if you have 3 arrays of data, let say chan1, chan2 and chan3, you can choose
    which data you want to display in your graph using the property node (Active
    plot and visible). But for the legend as you send 3 plots there is an array of
    the plot name [chan1, chan2, chan3] and you can display 0, 1, 2 or 3 rows of
    this array but you cannot control the order in this array! So, to be able to
    change this array you have to only send data you need to you graph. I'm not
    sure my explanations are clear so I have implemented a simple example doing
    that.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/
    Attachments:
    GraphLegend.vi ‏85 KB

  • [Theory] A simple but hard question about OO programming

    I was in my first class of OO programming (4th year of computer engineering in Valencia) and the professor gave us homework.
    The homework was a simple question about OO programming (it is not about a specific language, though we are going to use Java in the practice sessions), we shall find an answer to it and discuss it in class the next day.
    The question was:
    "May classes also be objects?"
    which can be said as:
    "May classes be instances of an(other) classes?"
    I hope that you, archers, can enlighten me in this question

    tvale wrote:I believe an object is an instance of a class.
    Yup, that's true. Let's see... An object is an instance of a class, so we can have a lot of objects coming from one class.
    We can say an object is not a class because it has a state (think about a light, it has a state: on or off, but a class light is not on/off, because in a class we just describe the behavior that class should have.
    But what we're asking here is if a class can have a state. I think it may refer to static properties about the objects.

  • Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect

    Hi ,
    You might want to refer the following link to find your serial number and activate your software .
    Here is the link for the same.
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Let us know how it goes .We'll do the best possible to get your issue fixed.
    Regards
    Sukrit Dhingra

  • A question about DNS subdomain

    This is a question about DNS subdomain.
    The DNS server for the parent DNS domain is dns1.ours.com.
    The DNS server for the child/sub DNS domain is bee.child.ours.com.
    Configurations on dns1.ours.com:
    File: db.ours.com�F
    @IN SOA dns1.ours.com. postmaster.ours.com. (
    10051215 ; sn
    86400 ;refresh
    7100 ;retry
    777600 ;expire
    126000 ) ;min
    @ IN NS dns1.ours.com.
    dns1 IN A 210.x.x.15
    �c
    [color=Blue]child.ours.com. IN NS bee.child.ours.com.
    bee.child.ours.com. IN A 210.x.x.10[color]
    I did not changed anything in named.conf.
    Configurations on bee.child.ours.com:
    File db.child.ours.com:
    @ IN SOA bee.child.ours.com. test.child.ours.com (
    10051215 ; sn
    86400 ;refresh
    7100 ;retry
    777600 ;expire
    126000 ) ;min
    @ IN NS bee.child.ours.com.
    bee IN A 210.x.x.10
    test IN A 210.x.x.x
    File named.conf:
    options {
    directory "/var/named";
    zone "." {
    type hint;
    file "master/db.cache";
    zone "0.0.127.in-addr.arpa" {
    type master;
    file "master/db.0.0.127";
    zone "x.x.210.in-addr.arpa" {
    type master;
    file "master/db.child.ours.com.rev";
    zone "child.ours.com" {
    type master;
    file "master/db.child.ours.com";
    #nslookup
    Default Server: 210.x.x.10
    Address: 210.x.x.10
    // bee.child.ours.com: the DNS server for the child/sub DNS domain: child.ours.com
    www.ours.comServer: 210.x.x.10
    Address: 210.x.x.10
    *** localhost can't find www.ours.com: No response from server
    //failed to resolve A records in the parent domain, but can resolve A records in its own domain and other domains on the Internet.
    set type=ns
    ours.comServer: 210.x.x.10
    Address: 210.x.x.10
    Non-authoritative answer:
    ours.com nameserver = dns1.ours.com
    Authoritative answers can be found from:
    dns1.ours.com internet address = 210.x.x.15
    //find the DNS server for the parent domain
    > server 210.x.x.15
    // dns1.ours.com: the DNS server for the parent DNS domain: ours.com
    Default Server: dns1.ours.com
    Address: 210.x.x.15
    test.child.ours.comServer: dns1.ours.com
    Address: 210.x.x.15
    *** dns1.ours.com can't find test.child.ours.com: No response from server
    //failed to resolve A records in the child domain, but can resolve A records in its own domain and other domains on the Internet.
    set type=ns
    child.ours.comServer: dns1.ours.com
    Address: 210.x.x.15
    Non-authoritative answer:
    child.ours.com nameserver = bee.child.ours.com
    Authoritative answers can be found from:
    bee.child.ours.com internet address = 210.x.x.10
    //find the DNS server for the child domain
    > server 210.x.x.100
    // a public DNS server on the Internet
    Default Server: [210.x.x.100]
    Address: 210.x.x.100
    set type=a
    www.ours.comServer: [210.x.x.100]
    Address: 210.x.x.100
    Non-authoritative answer:
    Name: www.ours.com
    Address: 210.x.x.72
    //find the A record in the parent domain
    test.child.ours.comServer: [210.x.x.100]
    Address: 210.x.x.100
    Non-authoritative answer:
    Name: test.child.ours.com
    Address: 210.x.x.x
    //find the A record in the child domain
    I wonder why. It is BIND v8.2.2.
    Thanks.

    Hi AAnotherUser_,
    Based on your description, the internal domain name is different from the external domain name, and the web server is hosted internally. And the goal is that the internal user can
    access the web server by using an URL which include the MyCorp.com.
    In this scenario, internet users access your domain name by connecting to the WAN IP address of your router. However, to make the internal users access the website, you would need
    to create the external domain name as a zone on your internal DNS server.
    After creating the DNS zone, right click the zone you created, choose New Host Record.
    Type in the hostname, such as ‘www’, and provide the internal private IP address of your internal web server.
    For more details, please refer to Ace’s blog below, the
    Scenario 2: Different Internal and External but you are hosting the webserver internally
    http://blogs.msmvps.com/acefekay/2009/09/03/split-zone-or-no-split-zone-can-t-access-internal-website-with-external-name/
    Best Regards,
    Tina

  • I have questions about DNS: Is this a DNS LOOP?

    Hi , everyone:
      I've read some text about the Domain Name System, And found something I can't understand:
      Many Text Say like this: 
      Suppose the resolver want to get the ip address of the domain: www.example.com, The DNS Query Process looks like
      1. The Resolver asks one or more of the ROOT-SERVERS
      2. The ROOT-SERVERS answer to the client that www.example.com is managed by the GTLD-SERVERS, and ROOT-SERVERS Gives some additional records to the Resolver about the ip address of those GTLD-SERVERS
      3. Resolver asks the GTLD-SERVERS about the domain: www.example.com
      4. The GTLD-SERVERS tell the Resolver to ask the IANA-SERVERS again , and again tell the Resolver about the ip address of the Name Server of IANA-SERVERS
      5. Now the Resolver go on asking the IANA-SERVERS about the domain: www.example.com , NOW the IANA-SERVERS answers the Resolver about the ip address of www.example.com
      My First Question is:
      Does Resolver Relay on the ADDITIONAL SECTION?
      Now Suppose I have two domains: example.com and example.org
      And i have registered my own NameServer: ns.example.com and ns.example.org
    Now I go to the registrar and change my DNS as follows:
    example.com  => ns.example.org
    example.org    => ns.example.com
    Then the resolver asks the www.example.com again, In my opinion , the process my looks like this:
    1. Resolver asks the ROOT-SERVERS of the domain www.example.com
    2. ROOT-SERVER answers that the Resolver should ask GTLD-SERVERS, and tell it the ip addresses of those GTLD-SERVERS
    3. Resolver now asks one or more of the GTLD-SERVERS ,
    4. The GTLD-SERVERS answers the Resolver that he should ask ns.example.org , but the GTLD-SERVERS does not know the ip address of ns.example.org , because the ORG domain is not managed by them.
      Then the Resolver must know the ip address of ns.example.org first if he want to resolve www.example.com
    5. Resolver asks the ROOT-SERVERS of the domain ns.example.org
    6. ROOT-SERVERS tell him to ask a0.org.afilias-nst.org. .... and give hime some additional records
    7. Resolver asks a0.org.afilias-nst.org
    8. a0.org.afilias-nst.org tell him to ask ns.example.com, because as HE Knows , it's the name server of example.org , But HE does not have any additional records about ns.example.com because the COM domain is managed by GTLD-SERVERS..
      Then the Resolver must know the ip address of ns.example.com first if he want to resolve ns.example.org ?
    9. Resolver asks the ROOT-SERVERS of the domain: ns.example.com
    10. ROOT-SERVERS tell hime to ask GTLD-SERVERS
    11. Resolver asks the GTLD-SERVERS about the domain: ns.example.com
    12. GTLD-SERVERS tell him to ask ns.example.org..
    LOOP...
    I don't know if my knowledge is right. My Second Question is:
    As I have register my own NameServer: ns.example.com , GTLD-SERVERS has the records of ns.example.com in it's database, But when I ask him ns.example.com , Why He tell me to ask ns.example.org ? Why not just answer me that he has the ip address of my NameServer?
    Hope some one explain it clearly. Thanks

    I'm in the same position, the store said they didn't know of any new release, so i bought my macbook pro to find out about mountain lion. I really hope that i'm not going to pay for the upgrade. New to apple, also last month bought my Ipad 3, really thought that Airplay would have been on my book pro, nope, waste of time.........need that update to use it. Back i the box then, get the windows 7 ultimate pro back out until then.

  • Big question about dns in solaris 10

    hi,
    in solaris 10 dns[client] is working fine even though the service is in disabled state.
    bash-3.00# svcs -a | grep dns
    disabled Oct_07 svc:/network/dns/server:default
    disabled 20:13:50 svc:/network/dns/client:default
    bash-3.00#
    still i can able to resolve the ip address.
    *my question is will this affect anything.. like autofs [net/<machine name>] concept.*
    Thanks.

    In short, no. Hostname resolution is guided by the /etc/nsswitch.conf file, and the /etc/resolv.conf file tells the resolver which DNS servers to contact.
    The network/dns/client service is actually part of the DNS server. If you start the DNS service with "svcadm enable network/dns/server", then the client service will start also (try it yourself).

  • Question about Java programming development

    There are five phases in java program development. They are: edit -> compile -> load -> verify -> execute
    However, every time I develops program. I only experience phase 1, phase 2 and phase 5. I always miss phase 3 and 4. When do the class loader and bytecode verifier work? How do they work?
    Second question, how the legitimate programs can execute automatically without typing command java to invoke the interpreter?

    lighthero wrote:
    I still have some questions.
    1. I want to run the program just like the commercial software such as Adobe and MS Office.(just double click to run the program.) How do I execute a java program without typing command java every time?Create an executable JAR: [http://java.sun.com/docs/books/tutorial/deployment/jar/index.html]
    >
    2. How does the JIT compiler work?[http://www.google.ca/search?q=Java+JIT]

  • Question about installing programs on macbook pro

    For example I downloaded adobe installer from the net, and the installer file can be found at the finder. Once
    I completely
    Download and install adobe, can i delete the installer at
    The finder?

    Can i ask another question?  What if i want to uninstall the program itself? For example, i found it a waste of memory anymore. Is dragging the application icon to the trash enough?

  • A question about thread programming ...

    Is it possible to modify the following program such that the output is
    ABCABCABC ...
    I tried yield, but not getting results on every run.
    The program is:
    public class Example1 {
    public static void main(String[] args) {
    MyThread t1 = new MyThread("A");
    MyThread t2 = new MyThread("B");
    MyThread t3 = new MyThread("C");
    t1.start();
    t2.start();
    t3.start();
    class MyThread extends Thread {
    private String message = "Hallo!";
    public MyThread() {}
    public MyThread(String s) {message = s;}
    public void run() {
    for (int i = 1; i <= 5; i++) {
    System.out.print(message);
    }

    Not really, no. It's possible (not using yield) to force threads to run in a particular order, but it's kind of missing the point of using threads in the first place!
    Yield is there purely to allow other threads the opportunity to run. It makes no guarantee about which thread will run next.
    If you really must, you need to use a wait() call to force the thread to block, notifyAll calls to resurrect them, and some commonly accessed resource that allows each thread in turn to determine IF it is its turn to run when it is awakened by the notifyAll call. That seems to be the closest to the spirit of what you're trying to do.
    It's a lot of work for something that you can more simply achieve by having only one thread of execution in the first place!

  • Strategic question about J2ME program

    I'm quite new to J2ME and am just working through trying to get a small program working between two phones - they communicate fine but I seem to be stuck more on a conceptual overview of some things I don't quite understand yet. Mainly because event driven seems to not sit well with me yet I don't think.
    I have 2 phones and I have them basically enter an insult to each other in challenge before they move into a series of rounds (small game). They do this part fine. What does happen though is the moment the insult is sent from phone A then it goes directly to the next display on phone A- and the same with phone B. The messages are sent but they both need to be able to view each other's insult / challenge before moving to the next displayable.
    I'm really just wondering in general terms how I go about creating stages where each phone has to complete something - a round in a game for example. I know it sounds kind of dumb but I'm just looking for some advice.

    http://www.jcp.org/aboutJava/communityprocess/final/jsr082/
    found this :) I think it's the answer to my problems.

  • Question about GenIL programming for CRM 7.0

    Hi All, I am confused in GenIL programming in CRM 7.0, pls help.
    1 Why there are 2 methods related to object method execution u201CIF_GENIL_APPL_INTLAYEXECUTE_OBJECT_METHODu201D and u201CIF_GENIL_APPL_INTLAYEXECUTE_OBJECT_METHOD2u201D, as I debugged, the former one will be called whatever the return type is Object or DDIC and I don't know how "EXECUTE_OBJECT_METHOD2" could be called.
    2 whatu2019s the usage of Object with Type u201CSearch Result Objectsu201D? I see it could combine data into result. But how to use it? Is there any sample for it?
    3 whatu2019s the usage of Object with Type u201CView Objectsu201D? Is there any sample for that?
    4 the best practice of using u201CIF_GENIL_APPL_INTLAYON_AFTER_COMMITu201D and u201CIF_GENIL_APPL_INTLAYON_AFTER_ROLLBACKu201D? whatu2019s the general purpose of those two methods? in it, what should I do and what should not do? 
    Thanks.

    Hi Richard,
    I am going to try and tackle all four at once. The answers are not complete clarifications, but should give you a good start. I am not logged into a system to check everything right now.
    1.
    As far as I recall the two methods differ in ther signature. METHOD() will only allow you to pass flat values and recieve flat values whereas METHOD2() gives you the ability to at least recieve references to objects and data.
    2.
    Your assumption is right. Result objects are exactly for the purpose to combine data of different areas into one handy object in a result list. The are create on the fly. Meaning there is no implementation class. Just specify them in your BOL dynamic query as resu lt object and fill the structure accordingly. It is just a nice thing to have on the UI. Logic for data fetching is combined in one central place. Can be reused everywhere
    3.
    Same as 2.. From my experience you can include view objects in the model hierarchy. For instance when fetching data from a remote destination and just displaying it on the UI.
    4.
    Looks to me like methods for implementing your own GenIL component and/or Root Object. In these two cases you would want to get information about the BOL transaction context. Cleanup your stuff or initialize. Have a look at the BP component. It is rather cleanly implemented. BT tends to be a little bit cetralized around CRM_ORDER_MAINTAIN.
    Hope it helps. I held  trainings concerning those topics and it is a topic I could go on about for at least an hour. BOL and GenIL are badly documented and there are many pitfalls.
    cheers Carsten

  • A question about DNS records and split DNS

    Hello
    Can someone please help me with the following question
    If I have an AD integrated DNS zone (currently running on Windows 2003 R2, soon to be updated to 2012 R2)
    lets call the domain MyDomain.Local and here I have all my local Server, Computer and related records (A, CNAME MX etc.)
    Also I have an external internet domain lets call is MyCorp.Com (both of these domain are completely separate)
    I have a requirement for an internal URL (Web Server) to point to an internal host, however for various reasons (which I will not go into here), the company wants the format of this internal URL to include the MyCorp.Com element in the overall URL
    Now the MyCorp.Com domain is hosted externally to the company by a dedicated provider (we just login via a secure portal if we want to add for example and A record to the MyCorp.Com domain) the MyCorp.Com domain is completely separate from the MyDomain.local
    domain which is hosted on internal DNS Servers
    Question:
    without using split DNS can I, create a zone called New.MyCorp.Com on our internal AD integrated DNS Servers (to live along side the standard MyDomain.local) than add an A record to this zone say Host.New.MyCorp.Com
    So internal users can locate Host.New.MyCorp.Com without being directed out to the internet (for MyCorp.Com) but internal users will still be able to resolve SomeOtherHost.MyCorp.Com as they do now
    Thanks very much in advance
    AAnotherUser__
    AAnotherUser__

    Hi AAnotherUser_,
    Based on your description, the internal domain name is different from the external domain name, and the web server is hosted internally. And the goal is that the internal user can
    access the web server by using an URL which include the MyCorp.com.
    In this scenario, internet users access your domain name by connecting to the WAN IP address of your router. However, to make the internal users access the website, you would need
    to create the external domain name as a zone on your internal DNS server.
    After creating the DNS zone, right click the zone you created, choose New Host Record.
    Type in the hostname, such as ‘www’, and provide the internal private IP address of your internal web server.
    For more details, please refer to Ace’s blog below, the
    Scenario 2: Different Internal and External but you are hosting the webserver internally
    http://blogs.msmvps.com/acefekay/2009/09/03/split-zone-or-no-split-zone-can-t-access-internal-website-with-external-name/
    Best Regards,
    Tina

  • Questions about the Program "Renamer4Mac" (file renamer program)

    Does anyone use this program? Or does anyone know of a good program that can be used to rename a large group of files?
    I have been trying to use this program to get rid of all the ",jpg" and ".doc" and ".ppt" etc, on my files. However, when I use the program, not only does it rename the files, by removing the suffix in the file name, it also changes the files to "Unix Executable Files". I don't want to change the file type, just the name. Is there anyway I can do this....with this program or some other one??
    Thanks!

    I wouldn't fiddle with globally changing or deleting file extensions. They are part of OS X's unfortunately convoluted concept of metadata, which is an attempt to join together several different systems - filename extensions (DOS-style), resource fork metadata (Mac OS), file type headers (Unix).

  • I have a question about a program I'm trying to run on a macmini.

    This program is called protomuck. It is a MU* server program.
    I'm not having any luck bringing up the MU* window in Savitar ( a mac based MU* client)
    I'm using localhost as an addy. (Because I don't have a server) and don't plan to fiddle around with that until later, anyways I'm trying to get this MU* running on my system so it can be transfered easily later on.
    Has anyone a clue what the default port I should use is?.
    And then if I get something...what I log in as ?
    I got the default password on the program, so that's all set.
    Do I connect one or #1?
    Do I use the command connect or the command CH?
    And finally if someone could recomond more or other MU* server programs, this would be nice too.

    For some reason I do not see your attached image full size I only see the thumbnail.
    * The image “https://support.cdn.mozilla.net/media/uploads/images/2015-02-10-21-47-26-659c35.png” cannot be displayed, because it contains errors."
    Not sure if that is a cdn server issue or a forum bug. I can not make out the names of the add-ons
    I also note you do not mention your Website address on your profile, and although that is not a place for out right advertising you will be permitted to add a link for a website you own or develop.
    The addons.mozilla page of each specific addon is probably a good place to check for licence details. You could create your own ''collection'' on addons.mozilla and link to that.
    *See https://addons.mozilla.org/faq That mentions licensing and collections.
    There are changes coming up on the process for installing extensions
    * https://blog.mozilla.org/addons/2015/02/10/extension-signing-safer-experience/
    That probably will not affect your plans, but I thought I would mention it.

Maybe you are looking for