dns

How to dynamically create sub-domains with different IP than the original domain correctly and efficiently?

How to efficiently create subdomains dynamically that are resolved to different IP than the original domain? Most dynamic subdomain creation solutions I've found here would add a *.domain.com A-record to the DNS server (usually using BIND), but that's not what I want. Does that mean the zone file needs to be set to always Expire? Woul...

If a site has 2 load balancers for redundancy reason, which one should the DNS points to?

If I simply point to both in my DNS record, wouldn't 50% of traffic be in trouble as well? ...

Integrated Windows Authentication

We're experiencing some really strange problems with Integrated Windows Authentication with IIS and I'm not sure if I can see a pattern or not. We have a DNS-Cname record called Fred. We have an IIS website with Fred set as the host header. When I connect to this site I get prompted with a credential challenge. I would expect my credent...

Firefox DNS question

Is it possible to switch firefox to use a different DNS than what is in the windows.host file? For example, I have a development site on a different server but I'm trying to copy content over from the live site so it'd be handy to have the live site in IE and the dev site in FF. I tried FoxyProxy but I can't seem to get it to work. Th...

Remote debug a service via VPN

Stepping into a web-service method call: first it complained that remote debugging was not set up on the server. So I went all the way to the office on a Saturday and set up remote debugging, and went home and tried again. Now it complains that the server DNS cannot resolve my client, which is connected via VPN to the office network but...

DNS HTTP Requests

If I was to send a URL to a DNS server, lets say: "dev.example.com/?username=daniel", what is exactly sent to the DNS server? The whole URL (including any passed parameters) or is it just website section "dev.example.com"? I want to know so that I know what parameters I should be hiding in a URL. The reason I am asking is because I jus...

What are valid characters for a DNS Zone file and how can I sanitize user input?

I'm working on an interface to allow our clients to update their DNS on their own. I have 2 questions: What constitutes valid a valid host and target records? (A, CNAME, MX, TXT) i.e. if the user enters ........ for the host and target the DNS server won't like that. Is there a regex I can use to sanitize user input? BTW it is BIND...

Any idea how to let S3 serve "maintenance mode" page?

Say, you have a Rails (or actually any other kind) application running on Amazon EC2, and whenever you perform some maintenance, which might include shutting down or re-creating your instances, you might want S3 to display your "maintenance mode" page instead of your app. So, basically, that might mean: Uploading text saying when you'...

Dynamic DNS on your own server

I have a server in at a hoster (which has a static IP) and want to run a server at home too and don't want to buy the dyndns package from dyndns.com I would either like to find a program that does this without costing money and using my own server and domain so I can have myclient.domain.com or I would like to write this myself. Would ...

Dealing with Email when changing DNS

I am changing the DNS of a domain to point to a new server. What is the best way to handle this to make sure the transition goes as smoothly as possible, specially pertaining to email? Ideally I would like their current emails to not be lost. I believe they are just using webmail at the moment. Thanks! ...

How do I validate the MX record for a domain in python?

I have a large number of email addresses to validate. Initially I parse them with a regexp to throw out the completely crazy ones. I'm left with the ones that look sensible but still might contain errors. I want to find which addresses have valid domains, so given [email protected] I want to know if it's even possible to send emails to abc...

Get unqualified host name in .NET

Is there a .NET equivalent to the winsock function GetNameInfoW() with the NI_NOFQDN flag set? As the MSDN docs for GetNameInfoW explain: Setting the NI_NOFQDN flag results in local hosts having only their Relative Distinguished Name (RDN) returned in the pNodeBuffer parameter. The closest thing I can find is System.Net.Dns.GetHost...

How does System.Net.Sockets perform its DNS lookups in the context of finding a WCF service?

I have a Web application and a WCF service hosted on the same Windows 2003 development server. They each have their own IIS website node responding to drs.displayscreen.web and drs.displayscreen.service host headers respectively. The hosts file contains entries for both headers pointing back to 127.0.0.1. The web site has a service refe...

Getting caller's hostname in WCF

Hi, I'm replacing an existing web service with a WCF service and as the first step of migration I'm going to expose an endpoint with BasicHttpBinding until the client is upgraded later on in the year. The plan is to host the new WCF service with a windows service (the service will only be called from within the intranet so there's no r...

Querying full DNS record

I do alot of programming in *nix using C gcc. I know how to do a basic gethostbyname(). BUt what if I wanted to pull down the entire DNS record. More to the point, is there a function that I'm missing that allows you to specify the specific record that you want to pull? Or will I need to do this manually through a UDP socket? ...

Is it normal for a DNS server to not respond until the name servers are switched on the whois record?

I have someone telling me that DNS servers only start responding after the whois record is updated to point at their DNS servers. Is this normal behaviour? Or should a DNS server respond before the whois record is updated? Also, once the domain is active, (so either after the domain is added or after the whois record is update, dependin...

DNS and webhops

I'm currently using EveryDNS as dynamic dns. I'm trying to setup the MX records point to Google Apps . Because my ISP blocks port 80, I need to use webhops to redirect. I did exactly what EveryDNS mentions on their site and it works; having my www.mysite.com & mysite.com pointing to www2.mysite.com:8080. The problem relies that when I ...

How would you create sub-domains with DNS automatically?

I would like to automatically update my DNS more multiple domains programmatically. I run a BIND server (on FreeBSD) as well as host domains and DNS at GoDaddy. I could not find a web service API for GoDaddy to access and update my DNS that they are hosting so I may have to use my BIND server to provide a dynamic solution. Basically I j...

Create Subdomains on the fly with .htaccess (PHP)

I am looking to create a system which on signup will create a subdomain on my website for the users account area. e.g. johndoe.website.com I think it would be something to do with the .htaccess file and possibly redirecting to another location on the website? I don't actually know. But any information to start me off would be greatly ...

DNS Gurus: How to forward www.domain.com to domain.com using DNS only?

I am running a blog at posterous.com, and they can host my domain name if I create an A record to their IP in my domain registrar's custom DNS tool. The problem is that I want my domain to ALWAYS read domain.com, so I want to have my DNS remap any requests to www.domain.com to domain.com, and I can't use .htaccess or PHP or other server...