1. Errors resolving the following references

When trying the following code with eui r2883 i get this

-- 
include std/net/dns.e 
object result 
result = dnsquery("yahoo.com",NS_T_MX,0) 

mydns.exw:4 
<0074>:: Errors resolving the following references: 
	mydns.exw (4): dnsquery 
 
result = dnsquery("yahoo.com",NS_T_MX,0) 
                 ^ 

Am i doing somthing wrong or is it a bug?
~tj

new topic     » topic index » view message » categorize

2. Re: Errors resolving the following references

Thomas said...

When trying the following code with eui r2883 i get this

-- 
include std/net/dns.e 
object result 
result = dnsquery("yahoo.com",NS_T_MX,0) 

mydns.exw:4 
<0074>:: Errors resolving the following references: 
	mydns.exw (4): dnsquery 
 
result = dnsquery("yahoo.com",NS_T_MX,0) 
                 ^ 

Am i doing somthing wrong or is it a bug?
~tj

If that's the only error you get, it's pretty clear that this is a bug.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Errors resolving the following references

Thomas said...

mydns.exw:4 
<0074>:: Errors resolving the following references: 
	mydns.exw (4): dnsquery 
 
result = dnsquery("yahoo.com",NS_T_MX,0) 
                 ^ 

Am i doing somthing wrong or is it a bug?

If you take a look at std/net/dns.e, you can see that dnsquery() (and, indeed, most of the file) has been commented out. Looking at the commit log for dns.e, I found this:

r1619 | jeremy_c | 2009-04-01 05:45:58 -0400 (Wed, 01 Apr 2009) | 6 lines 
 
* net/http.e and net/dns.e back to base functionality. dns.e has 
  only gethostbyname and gethostbyaddr, however much more functional 
  than previous implementations. http.e does have get_http_use_cookies 
  commented out as it needs more work. 
* tests of dns/http are now functional again 

I suspect there were some issues getting it to work in a cross platform way, though I haven't really worked on the network stuff, so I think we'll have to wait for Jeremy to comment. Also, the dns documentation omits any mention of dnsquery().

Matt

new topic     » goto parent     » topic index » view message » categorize

4. Re: Errors resolving the following references

mattlewis said...
Thomas said...

mydns.exw:4 
<0074>:: Errors resolving the following references: 
	mydns.exw (4): dnsquery 
 
result = dnsquery("yahoo.com",NS_T_MX,0) 
                 ^ 

Am i doing somthing wrong or is it a bug?

If you take a look at std/net/dns.e, you can see that dnsquery() (and, indeed, most of the file) has been commented out.

Matt

Oops, I missed the comment.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Errors resolving the following references

Thomas said...

When trying the following code with eui r2883 i get this

-- 
include std/net/dns.e 
object result 
result = dnsquery("yahoo.com",NS_T_MX,0) 

mydns.exw:4 
<0074>:: Errors resolving the following references: 
	mydns.exw (4): dnsquery 
 
result = dnsquery("yahoo.com",NS_T_MX,0) 
                 ^ 

Am i doing somthing wrong or is it a bug?

dnsquery doesn't exist. I think it's in the docs on accident. It was there before we did the port to C but has not been converted yet.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

6. Re: Errors resolving the following references

dnsquery() does not exist, but host_by_name() and host_by_addr() do. At least they did as of r2857. They may serve your purposes.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu