dns

Check domain availability Java

Is there a relatively simple way in Java to check if a domain is available or not? I need a reliable method, so only checking if the connection can be made is not enough. ...

Retrieving server address from email

How can I retrieve mail's SMTP server from email (for example [email protected]) ? ...

Help needed in Setting up DNS Server in Windows 2008

Hi I'm trying to setup a DNS server on my loca network, so that when a client machine does NSLOOKUP MYPCNAME it returns the IP address of MYPCNAME I installed DNS on the server, and I added a Forward lookup Zone named 'LAN' Added an A record for MYPCNAME to point to 192.168.1.10 Now I can lookup the names using the fully qualified name...

VB6 Lookup Hostname From IP, Specifying DNS Server

I know how to look up a hostname from an IPv4 in VB using the GetHostByAddr Windows API call (this works great). However, that function does not allow one to specify the DNS server to use. Sometimes the default company DNS servers are fine, but other times I need to specify an external DNS server for lookups, and I don't think doing a sh...

.com domain registered to 127.0.0.1

There is some dot com domain someone has registed and pointed to 127.0.0.1. Something like myserver.com. I saw this in an answer on a stackoverflow question - but the name of the domain has totally escaped me. Can anyone remember that domain name?? ...

PHP5 - Fails to resolve hostnames when not in interactive mode.

I'm working with an OS X 10.6 Server running Apache2 / PHP5 and having a problem with PHP not resolving hostnames when 'fopen()' tries to retrieve a file from a remote server. When run in interactive mode on the command line 'fopen()' works perfectly. However, when run through the web it will always fail with the error: failed to open s...

How does domain registration works?

I searched Google and Wiki a lot, but I could't find answers for these questions. 1) What exactly registrar company do? They update an root DNS and set there IP of my DNS? 2) How come the registrar can update records in the root DNS? How did they get this priviledge? How could I get this priviledge too? 3) What exactly we pay the regi...

Tell urllib2 to use custom DNS

I'd like to tell urllib2.urlopen (or a custom opener) to use 127.0.0.1 (or ::1) to resolve addresses. I wouldn't change my /etc/resolv.conf, however. One possible solution is to use a tool like dnspython to query addresses and httplib to build a custom url opener. I'd prefer telling urlopen to use a custom nameserver though. Any suggest...

PHP - same server, different domains require different sessions.

Hello, I'm implementing login and registration for multiple domains that talk to a single database - we'll call them i.domain-a.com and i.domain-b.com. Both these subdomains have A records in the DNS that point to a single server - thus making i.domain-a.com/hello.php and i.domain-b.com/hello.php run the same thing. So, if I create a s...

Querying custom DNS Server using C

Hey, I want to make a DNS query to my own DNS server instead the default one. Which api can I use to do that ? I know getaddrinfo (which ping.exe using), but how can i make this function query my dns server, instead the default one ? Thanks! ...

VB6 - Windows API call to DnsQuery - Function and Pointer Question

In VB6 I'm making a call to the Windows API DnsQuery. Private Declare Function DnsQuery Lib "dnsapi" Alias "DnsQuery_A" ( _ ByVal lpstrName As String, _ ByVal wType As Integer, _ ByVal Options As Long, _ ByVal pServers As Long, _ ppQueryResultsSet As Long, _ ByVal pReserved As Long) As Long Private Type VBDnsRecord ...

Ruby on Rails user generated subdomains - do I need a Dedicated Virtual Host?

I'm successfully running subdomains on my mac OSX as outlined by Robby on Rails. I'd like to follow the example code below but I have no idea where to start. How do you edit a DNS setup? Do I need to have a dedicated virtual host to do this? Right now I have a standard (crappy) Dreamhost shared hosting. If I go with a DVH, is Media Templ...

WSAGetLastError with unknown error code.

I am using WSAGetLastError function to retrieve failure details when using getHostByName function. But the error code returned by the function is 0042124C is not available in the documentation. Am I receiving the error code in some other format or am I using the function in a faulty way? Thanks. PS. Code segment below // DNS Hostname....

Redirect from site.com to www.site.com?

What would be the best way of achieving a redirect from, lets say site.com to www.site.com on a windows server? I have access to the dns server also, if anything could be done there to help it along. I know you could do it by code (asp.net, php etc on your site) but i am wondering if it is possible only using iis and/or dns setup? I se...

Route web requests to different servers based on subdomain

First of all, I've seen this: http://stackoverflow.com/questions/589669/how-to-redirect-different-sub-domain-requests-to-different-servers But my problem is different. I have a platform where a user can create a new website using a submdomain. There will be thousands of these, eg abc.mydomain.com, def.mydomain.com . Hopefully if we ar...

cakephp uses old dns entry

Hi, In our cakephp application, we do a file_get_contents('http://my.web.com',... ); Recently we changed the ip address of my.web.com, and we modified our /etc/hosts file, and flush dns cache using /etc/init.d/nscd restart, and restarted apache. However, file_get_contents still refer to the old ip address, while if we do ping, nsl...

Why would java give different DNS results with IPv4Stack

I have the following code: import java.net.InetAddress; public class lookup { public static void main(String[] args) throws Exception { for(String host : args){ for(InetAddress addr : InetAddress.getAllByName(host)){ System.out.println(addr.getHostAddress()); } } } } We recently changed the CNAME for a host w...

Best way to resolve a DNS TXT record on Linux/Unix/Posix/BSD type systems?

I want to write some portable (as possible) C code to look up DNS TXT records. I would also prefer not to have dependencies on libraries that don't ship with the machine. What is the best way to do this on Unix-like machines using standard libraries? I found some sample code that works using libresolv, but it's not reentrant (not threa...

Is it possible to set Android apps to connect to dev servers?

When building desktop or web apps, its easy to add fake hosts file entries so apps will connect to dev servers instead of production ones - is something similar possible for Android apps? ...

Dns NS on windows server 2008.

Hi. I want to use my winserver 2008 to host my own pages. I got a couple of domains. So I want to setup my server to it. Now to the questions and thoughts. 1.Do I create NS1, NS2, NS3 on this one server? If are they done in the _msdcs, or the MYDNS.COM.. NS I mean Name Server, i need atleas 2 to redirect the domain(u knew this but any...