dns

PHP5: dns_get_record() only returning A records for subdomains.

Running PHP 5.2 on Linux, I am running a series of queries with dns_get_record(). It would appear from the documentation that this function replicates dig(1) but I am seeing inconsistencies. My goal is to get the primary and secondary nameservers that are authoritative for the domains that each hostname belongs to. dns_get_record('exam...

Is there a new library for Java that supports IPv6 on Solaris?

I'm doing the following to lookup an Internet address. It fails specifically on Solaris machines that have IPv6 nameservers in the resolv.conf. Works fine on Windows machines that have IPv6 nameservers and on IPv4 only Solaris machines. From the error returned it appears that the Java "getAttributes" line is failing internally (somewh...

Specify which DNS servers to use to resolve hostnames in .NET

Hi, I'd like to know if there's any way to force the System.Net.Dns class to resolve hostnames using a set of custom DNS servers instead of using the ones that are associated with the main network connection. I suspect that this is only possible using a custom library like DnDns (http://dndns.codeplex.com), but I was hoping this could ...

Windows DNS hooks

How does Windows resolv DNS and how can I intercept the calls, in order to inject my own domains? I need this in an application, and running my own DNS server or modifying the hosts file is not a solution. ...

A Record or Hosts File on a Windows 2003 DNS Server

I have a Windows 2003 DNS server that forwards on to OpenDNS. I want to set it up so that when someone requests dev.mydomain.com instead of requesting the IP from OpenDNS it returns a local IP address. The reason I want to do this is because I have a local dev server called dev locally and dev.mydomain externally. I'd like it if I'm in...

Cloudfront dist on top level domain

Is it possible to point a top level domain like http://example.com to a amazon cloudfront distribution? I know it's possible with CNAME's but as far as i know i need to set a A-name record for the top level domain in the DNS settings. ...

Expanding web service across multiple servers on same domain name

I have a web service that serves widgets. It is hosted on a server under server1.mydomain.com. (Linux, plesk, VPS) I would like to have more physical servers which will be accessed via server2.mydomain.com etc. Note that its actually the same domain name pointing to another physical server. This configuration also has to support SSL. ...

Is it a good idea to call an image by it's IP address instead of a domain?

Let's say there is a page with 100 different user photo's shown on the page, that is at least 100 DNS lookups right there, would this be reduced if I were to link using the an IP instead of a domain url? http://217.345.33.444/images/photo.jpg instead of http://domain.com/images/photo.jpg ...

When retrieving URL via HttpWebRequest, can I see the IP address of the destination server?

Suppose I am retrieving a url as follows: string url = "http://www.somesite.com/somepage.html" HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); Is there a way I can see the IP address of the destination url? Does it require a separate call? Thanks ...

Checking Nameserver setup from command line

Is there a way to check if my domain is setup correctly on the nameservers? Ideally I'd like to run a command from command line, alternatively can use a third party tool. for example, I'm trying to register a domain that's to be hosted on godaddy.com. I have set up the domain and can see it in my DNS list. The servers that are supposed ...

Why is my local WCF client's IP not 127.0.0.1?

I have a WCF client and service using HTTPS over the wsHttpBinding. One common setup has the client and server components on the same machine. The client has to set the endpoint address to include the server's machine name, rather than localhost for SSL reasons i.e. https://mymachine/myservice/service.svc The problem is, that the defau...

"Microsoft DNS Client" vs. getaddrinfo?

Right now, my application is using the c-ares asynchronous DNS resolver library on Windows below cURL, and I have users complaining that it behaves differently from other windows apps. One particular user said that "other applications are using the Microsoft DNS client" and experiences no problems. cURL itself has an asynchronous DNS im...

Get root DNS entry from php server; get domain name without www, ect...

How would one get the root DNS entry from $_SERVER['HTTP_HOST']? Input: example.co.uk www.example.com blog.example.com forum.example.co.uk Output: example.co.uk example.com example.com example.co.uk EDIT: Lookup list is very long ...

Domain name interpretation utility for java

I find myself with a need for a java utility for taking a fully-qualified hostname, and producing the domain name from that. In the simple case, that means turning host.company.com into company.com, but this gets rapidly more complicated with host.subdomain.company.com, for example, or host.company.co.uk, where the meaning of "domain n...

php dns records

Hi there When I use dns_get_record within a php script to get a list of DNS records for a domain, a list of records are returned. But then if I run the script again it does not return all of the same results(ie it just returns the name servers) then if I run it again it works etc. This is the code I am using: $result = dns_get_record...

Qt4 DNS Proxy QUdpSocket

Hello, I'm essentially trying to make a DNS proxy application using Qt4. If I set my DNS nameserver to 'localhost' then I want to forward all DNS requests to the server specified in the remoteSocket object. Everything seems to be working fine except sending the data from the remoteSocket object back to the localSocket object which is ...

php get DNS records

HI Does anyone know how its possible to retrieve the DNS records for a domain. I have been using php and this function: dns_get_record to do this so far but have realised that this command gets cached DNS records and therefore not the up to date information. Does anyone know a way around this in php or some other language? ...

php pear net_dns

HI Does anyone know where I can find good documentation on the Pear module Net_DNS? ...

question about UNIX dig output

Using the unix dig command, I can get the following MX record: $ dig +nocmd gmail.com MX +noall +answer gmail.com. 1868 IN MX 20 alt2.gmail-smtp-in.l.google.com. gmail.com. 1868 IN MX 40 alt4.gmail-smtp-in.l.google.com. gmail.com. 1868 IN MX 5 gmail-smtp-in.l.google.com. gmail.com. 1868 IN MX 10 alt1.gmail-smtp-in.l.google.com....

Difference between http://example.com and http://www.example.com?

For sessions and cookies, is there a difference between example.com and www.example.com? I have a very strange problem with our web application The privat web is: private.example.com The public web is: example.com For some reasons outside my control www.example.com is allways redirected to example.com I guess this is the setup on the ...