I'm using getaddrinfo to do DNS queries from C++ on Windows. I used to use the Windows API DnsQuery and that worked fine, but when adding IPv6 support to my software I switched to getaddrinfo. Since then, I've seen the following:
My problem is that some times getaddrinfo take very long time to complete. The typical response from getaddr...
How accurately can a domain name's availibility be determined by checking for the existence of NS or SOA (Start of Authority) records?
If not, how can I determine this as accurately as possible without resorting to WHOIS? For example, is it worth checking for MX records if no NS records exist?
I am specifically interested in .co.za dom...
I will be running a dynamic web site and if the server ever is to stop responding, I'd like to failover to a static website that displays a "We are down for maintenance" page. I have been reading and I found that switching the DNS dynamically may be an option, but how quick will that change take place? And will everyone see the change i...
I am trying to get reverse DNS lookups working with the net-dns gem for ruby.
From the rdoc
res = Net::DNS::Resolver.new
ip = IPAddr.new("172.16.100.2")
packet = res.search(ip)
packet = res.search("192.168.10.254")
should work but I'm getting
ArgumentError: invalid address
for the last two lines.
This happens using a custom ge...
When I am sending a DNS query to the DNS it returns the header with the format bit set.
Indicating there is a problem with the format, but I am failing to see what it is. Its possible I have misinterpreted the RFC, or misread it but right now I cant seem to work it out.
The DNS structure I am sending looks like this in hex.
Header
00...
This is very similar to this problem:
http://stackoverflow.com/questions/322659/sendmail-and-mx-records-when-mail-server-is-not-on-web-host
I have a php script on an IIS server called example.org. It sends mail() to [email protected], which goes to a spam appliance and on to their Exchange server, but the mail never gets through. ...
I've been using RFC 1035.4.1.3 as a reference for DNS RR format:
http://www.freesoft.org/CIE/RFC/1035/42.htm
The RFC says that RDLENGTH is "an unsigned 16 bit integer that specifies the length in octets of the RDATA field" but in the datagrams I'm getting RDLENGTH is sometimes 2 less than it should be. I've checked with wireshark to ens...
Hi,
How is it possible to create a subdomain for each registered user of the web-site during the registration?
For the scenario below...
User opens site.com/register.
Provides details and submits.
Gets redirected to the newuser.site.com straight away
User can work in the newuser.site.com area
I don't know how to solve the issues:
...
Hello all,
I'm newbie to BSD socket programming in C. I can query a web address to get its associated ip addresses with "getaddrinfo" function. But i want to know which dns server getaddrinfo queries this information from.
...
I am trying to have all subdomains point to one location on disk, and a particular subdomain (dev) point to another.
I tried this :
<VirtualHost cueflash.com>
ServerAdmin webmaster@localhost
ServerAlias www.cueflash.com *.cueflash.com
DocumentRoot /home/cueflash/www/cueflash.com
CustomLog /var/log/apache2/cueflash.com.log combined...
nslookup.exe www.google.com 127.0.0.1
This command can resolve using DNS server 127.0.0.1, it's impossible to implement a full stack DNS protocol resolver in a 75.0 KB nslookup.exe, so it must have been using dnsapi.dll.
So which dll export C function can provide similar gethostbyname() with a specified DNS server in dnsapi.dll?
...
Hi,
I have trouble with DnsQuery API, the *ppQueryResultsSet parameter troubles me. Can anyone show me an example of how to make correct DLL calls in python?
import ctypes
from ctypes import wintypes
from windns_types import DNS_RECORD, IP4_ARRAY #declared here http://pastebin.com/f39d8b997
def DnsQuery(host, type, server, opt=0):
...
As the title says I need to build a simple dns resolver in C...
Not in C++, I have looked on internet for some tutorials to help me get going but mostly find C++.
Wondering whether anyone knows of a tutorial to get me started or can give me a couple of tips on how to build my DNS request header in C...
Any help will be much appreciat...
Are there any well known addresses that can be resolved to well known IP addresses, preferably for both IPv4 and IPv6?
I'm playing with Berkeley Sockets and have written a class to encapsulate away the sockaddr_in stuff, and want to unit test it but don't know of any addresses that I can put in as test data that are guaranteed to resolv...
Is there a way to view/dump DNS cached used by java.net api?
...
As per this question I asked previously on Google App Engine, if I have access to all the information in a standard email, not just the From, To, Subject, Body fields, but also all the headers and MIME information, how can I verify that two incoming emails with the same From address are actually from the same sender.
What I've consider...
Google recently announced their Public DNS Service. It's suppose to be faster and more secure than regular DNS.
Based on the Google instructions and my limited understanding of DNS it can only be used by web surfers.
How can web developers take advantage of Google's new service to better our websites and web applications?
Is their a...
Suppose I have a website hosted at the url:
http://www.mysite.com/
Say this is hosted by hosting provider "A".
Now, I want to host a subdirectory within this site at another host:
http://www.mysite.com/blog/
...say I host this with hosting provider "B". So all the pages under this site would be at a completely different data...
I want to write an online application that:
reads the URL from address bar of the browser
extracts its lexical features (like n-grams)
extracts its host based features (fetch DNS records online, its A, PTR, TTL fields)
classify the URL into malicious or benign (using machine learning)
Can anyone help me with 1 and 3?
...
Iam writing a program to gather data on ttl of various DNS records.I could get it for SOA. Can anyone say how to obtain ttl value for MX , A records ?
...