Re: confused



leo wrote:

Any pointers on how to construct a DNS response packet to this
nslookup query?

I'm sure you have a C question, but it is shrouded in this non-C disguise. You apparently want to know how to construct a data object of some format from some given data. Unfortunately, you describe neither what data you are given nor what the constructed data should look like. This is no doubt covered by the documentation for your non-C function nslookup. If your question is about your implementation-specific function nslookup and its arguments, ask in a newsgroup about that implementation.

I just need examples. I am actually going to use this nslookup Program
to query an IP which doesn't have dns server running instead an other
program in that IP is just going to respond to this query as if dns is
responding and No i am not writing a DNS server. I just need for the
initial response and hence asking this question on if there is any
reference to construct a dns packet.

None of this stuff about nslookup, IP, DNS is in anyway about C or even about programming in C. If you take the time to modify your question to an actual question about how to do something in C, perhaps you will find that you don't actually need help.
.



Relevant Pages

  • Re: Was this poisoning, spoofnig, or something else?
    ... The DNS server has been fine for two years. ... here is what we saw in nslookup. ... www.test.com.test.com (china address, extra "test.com" added) ... If the Active Directory domain is test.com and I query "nslookup ...
    (microsoft.public.windows.server.dns)
  • Re: Was this poisoning, spoofnig, or something else?
    ... resolution as an address that has been traced to somewhere in China. ... The DNS server has been fine for two years. ... here is what we saw in nslookup. ... If the Active Directory domain is test.com and I query "nslookup ...
    (microsoft.public.windows.server.dns)
  • Re: confused
    ... I'm sure you have a C question, but it is shrouded in this non-C ... non-C function nslookup. ... to query an IP which doesn't have dns server running instead an other ... program in that IP is just going to respond to this query as if dns is ...
    (comp.lang.c)
  • Re: Where is the Resource Record kept?
    ... I have never heard of 'dig'. ... Although I've used nslookup on occasion, ... > You can also just use something like dig or nslookup and do an axfr query ... I can't do this within the DNS ...
    (microsoft.public.win2000.dns)
  • Re: Using nslookup?
    ... use dig. ... nslookup is not as well suited to this task. ... I am trying to trouble shoot a DNS problem. ... > Or sometimes with LS I get non-existent domain even though a query for the ...
    (microsoft.public.win2000.dns)