dns

How does geographic lookup by IP work?

Is which IPs are assigned to which ISPs public information? How do geo IP services obtain this information and maintain this information? How can I personally figure out where a certain IP belongs without using one of these services? ...

DNS in Twenty-One Hours

I want the equivalent online resource to DNS in Twenty-One Days. I need one evening's reading that will explain what the different record types do, how do propagation and caching work, what is an SoA, etc. I don't want anything that begins by explaining what DNS is. Can anybody please point me in the right direction to find some onlin...

Get IP Address of Remote Client with No DNS Entry in VB.Net

I have a Windows forms application running on a terminal server. I need to determine the IP addresses of each client machine. I found a way to retreive the IP address for computers with DNS entries (example below), but several of my thin clients were set up with static IPs and have no DNS name. Is there a way to determine the IP addre...

How to avoid, that URL.equals needs access to the internet in Java?

The equals()-method of the URL-class in the Java-class-library makes a DNS-request to get the IP for the hostname, to check the two IP's for equality. This happens even for URL's, that are created from the same String. Is there a way to avoid this internet-access? ...

Get the subdomain from a URL

Getting the subdomain from a URL sounds easy at first. http://www.domain.example Scan for the first period then return whatever came after the "http://" ... Then you remember http://super.duper.domain.example Oh. So then you think, okay, find the last period, go back a word and get everything before! Then you remember http://su...

Failed to resolve IP

Try as I might, I'm unable to resolve an address to IP. The code snippet is shown below. I keep getting the No such host is known exception, even though I could access google with my browser (The DNS server is almost certainly working). I'm however behind company's firewall. try { foreach (IPAddress address in Dns.GetHostAddresses("w...

With Multiple IPs in Domain Handle, how are Failing IPs handled?

I am trying to coordinate the move of a site from its current server to a new one. My original plan was to migrate the data to the new machine, which is already in place and the migration scripts tested successfully. I was planning to configure the original machine to proxy all requests to the new one, in order to ensure that anyone hitt...

Is it possible to find all DNS subdomains for a given domain name?

Anyone knows if it's possible to find all A records, CNAME or subzone records configured for a domain name? For example, domain.com: www IN CNAME domain.com. subdomain1 IN CNAME domain.com. subdomain2 IN CNAME domain.com. subdomain1 IN A 123.4.56.78. subdomain2 IN A 123.4.56.79. I want to keep a sub-domain private where I'll run an...

Is there a technical reason for applications to hang on DNS lookups?

If I try to quit Firefox when it's "Looking up domain.com..." it beachballs (hangs), goes into "not responding" status, then finally quits. It does this without fail. This is on Mac with the latest FF, but it's always been this way for me, even on Windows with FF and I've noticed it with other applications. Is there any technical reas...

Can I use confstr to set up two nameservers?

Hi, I am trying to set two dynamic nameserver IP addresses in my QNX system. I have been able to use confstr to set up an address by setting a "_nameserver=xxx.xxx.xxx.xxx" string into _CS_RESOLVE. Then res_search returns the correct IP address for a given name. I actually have two questions: How do I set up two nameservers (prima...

SRV record lookup with PHP

If you type nslookup -type=SRV _xmpp-server._tcp.gmail.com (or use the dig command in OSX) you get some SRV records relating to google chat I would like to replicate this functionality in PHP, does anyone have any good ideas how to do this? I would like to avoid using exec() as this does not return 100% standard responses across OSX...

How to setup sub-domains like blogspot

What should do to setup a sub-domain for the users when they sign-up into my site. What are the infrastructure required? I am using Linux servers. ...

Http Request - Bypass DNS [.Net]

Is it possible (and if yes, how) to bypass DNS when doing a HTTP request ? I want to hit directly a front-end with an HTTP request, without getting through NLB but with the correct host header. As I have the IP of my server, I just need to bypass the DNS. I tried to use WebRequest, replacing the URL with the IP and setting the Host he...

What is the best way to forward all requests on a certain port to another machine on the network?

I have two dedicated servers and no hardware firewall. I'd like to forward all requests that come into the primary server on port 1008 to be fulfilled by another dedicated server on the same network. I know I need to set up some kind of TCP proxy, but I first heard of IPTables yesterday. Any quick tips? ...

DNS problem, nslookup works, ping doesn't

I am setting up a development server in my flat. I have set up an Ubuntu DNS server on it and have added the zone weddinglist (just weddinglist - no TLD. It's just an internal domain.) This works fine on my Ubuntu laptop. On all my Windows PCs (Vista and XP) I get the following from the command prompt: C:\Users\Giles Roadnight>nslooku...

How to manage a DNS server remotely?

I whant to make a web interface on a server that will manage a few dns servers on another servers. How can i remotely manage a bind dns server programmaticly ? I would like to add/edit/delete zones. I see that there is rndc but that only allows reloading of zones and not adding/deleting. I could NFS mount zones from dns servers and e...

Sorting domain names

Has anyone implemented sorting a list of domain names? I have seen some applications sort them as flat strings, but the problem is that you end up scattering all the related hosts in a domain: a.me.com a.you.com b.me.com b.you.com So, the basic logic I came up with reverse the order of the labels, then sort. FQDNs of one label should...

Non-leftmost wildcard in DNS record?

Hypothetical situation: Suppose I ran a hosting firm where I hosted subdomains for people. You could sign up and give me a few bucks a month, and I'd give you yourname.mycompany.com. Now, say I wanted mail.*.mycompany.com to point to one server and www.*.mycompany.com to point to another. Is this possible? The RFC seems to think not, ...

Can the "internet" reroute connection requests between remote servers when one is down?

I operate an OLTP system that allows SSL connections over the internet at multiple sites. I would like to find an effective solution to how to transparently and automatically reroute transaction connections when one site is down. Bonus points for considering the site down when it is not actually unreachable or unable to connect but jus...

Using two domain names for single site - how to set up DNS?

I'm building a site that will be available on two domains, example.com and example.eu. Currently I have it up and running on example.com (example.eu is HTTP redirected to example.com). What I need is that both example.com and example.eu point to the same host (atm they don't) - in other words, when you go to http://example.com/somepage....