dns

redirecting www.subdomain.example.com to subdomain.example.com

I've had some users trying to access a site that is registered as subdomain.example.com with www.subdomain.example.com. is there some sort of .htaccess rule I can add to redirect people that arrive using www.subdomain.example.com to subdomain.example.com? Also, do I have to change DNS stuff? ...

Getting a DNS TXT record in Ruby

I need to get the txt field from the DNS record. Is there any ruby api to do something like this? nslookup -q=txt xxxx.com Thanks ...

Programmatically obtain DNS servers of host

Using C++, I would like to obtain the DNS servers being used by a host for three operating systems: OS X, FreeBSD, and Windows. I'd like confirmation that the approaches below are indeed best practice, and if not, a superior alternative. OS X: already answered; updated link at developer.apple.com Windows: GetNetworkParms FreeBSD: /etc...

How can i allow the user to point their custom domains to sub domains in my asp.net MVCapplication? [As seesn in Posterous.com]

I am looking for a posterous like custom domain management for the users. The user can register a domain and should be able to point their new domain to their sub domain in the web application. Any ideas?. NOTE: I am not looking for a serverfault.com like answer but a programatic one as it is done in posterous.com. ...

RW - Primary/Secondary DNS Address In Python

I want to read the primary and secondary dns addresses from the system and want to change it to any user given address. Is this possible through some library. An alternative approach is that I read the /etc/resolv.conf and do the changes, which is what I've done. BTW the current solution I have is for Ubuntu OS, and for now if I get ...

JavaScript reverse DNS look-up

Is there a way to display the reverse DNS entry for someone visiting your page using only JavaScript? Or is the only way to do an AJAX request to a server that can do it? ...

Resolving the WMI DNS Host Name

I am trying to make a comparison between a machine name i have retrieved from AD, and the DNS Host Name i want to get using WMI from the machine. I currently have: foreach (SearchResult oneMachine in allMachinesCollected) { pcName = oneMachine.Properties["name"][0].ToString(); ConnectionOptio...

Dns caching for sockets

I'm connecting to some websites through socks proxy server. In my case its very good to implement dns cache, so proxy don't need to resolve website's ip address. So, I performed DNS lookup, but don't know where to supply IP address. mySocket.Connect uses proxy's ip address so it isn't right place. I tried to place it in http header GET h...

How to deal with Denial of Service attack and Session fixation and Cross Site request forgery in Rails?

Hi, I have just started learning Ruby on Rails. I happened to look for prevention of DNS attacks in Rails and ended up reading about DNS, Session fixation and Cross Site request forgery in Rails? How do you prevent all the above three attacks?? Could you suggest me a good tutorial on how to deal with attack in RoR? Looking forward f...

DNS Azure CNAME problem

It takes 9 seconds for a my domain oratorius.com to be resolved, if I use the nslookup command I have to set the timeout to 9 seconds, otherwise I get a timeout. Users have problems getting to my site. My domain host'er says: The delay is not occurring on our end, you have CNAME records directed to oratorius.cloudapp.net which is where ...

appear subdomain instead of ip address

hi! I have me own xamp server on my office and I developed an intranet witch clients can access through client.com domain... I have an index.php with header("location:ipadress") . i was wondering if it is possible to redirect cliente to my office ip adress but mantain my domain name in the browser like http://intranet.client.com is t...

DNS Lookup in simple C#/asp.net ajax call is extremely slow

I'm running this out of the VS 2008 debugger on Windows 7, running .Net 3.5. The idea was to make all ajax requests with jQuery only, rather than .net, following some tutorials online. Default.aspx -> HTML page, jquery triggers method in Default.aspx.cs http://pastebin.com/pxBvKA2H Default.aspx.cs -> C# Webform, just defines a GetDat...

how to get dns server ip in iphone

I have tried to fetch /etc/resolv.conf by open("/etc/resolv.conf", 0644) but it return -1 and the errno is 2 which means "no such file" what can I do? ...

How can I get the Autonomous System Number (ASN) and Netblock Owner for an IP in C#?

I need to look up the ASN and Netblock owner for a specific IP in a .NET server app. Is this info in the WhoIs data? Thanks! ...

check if e-mail is valid and exists

Hello, i want to check if an e-mail address is valid and exist. I mean not using regex. I need a valitadion by using mx. for example how to check blablabla[at]gmail.com exists on gmail.com it would be better using CMD (win) ...

Dns.BeginGetHostEntry won't return a result

Here's a piece of code I'm using: public void Start() { Dns.BeginGetHostEntry("www.google.com", new AsyncCallback(Stop), "Lookin up Google"); } public void Stop(IAsyncResult ar) { IPHostEntry ie = Dns.EndGetHostEntry(ar); Console.WriteLine(ie.HostName); foreach(string adres in ie.Aliases) { Console.WriteLine(a...

arp protocol, mac and ip

Hello, interested in ARP and wanted to check. ARP protocol is used found MAC and IP addresses, yes? How is it different from this: IPHostEntry iphostentry = Dns.GetHostByName(strHostName); ...

How to program a domain searcher?

I want to make an input where you write a domain, click a button, and then know if a domain is ocupied or unregistered. Is any API out there that can help me? ...

Logging hostname resolved in CXF

I have a java web service client that uses CXF. The server has 10+ possible ips that are resolved via dynamic dns. I have the jvm configured properly to not cache dns. My question is, I have the requirement that I need to log on the client the payload with the ip it was delivered to. Logging just the hostname will not work as the hos...

Trying to link a domain to a IP

Hi, I have registered mydomain.com now i want to redirect to my IP hosting account. The DNS editor shows two fields: Name and Address. In Address i wrote the IP i want the domain redirects. And in Name I wrote mydomain.com. After submitting the form, the page shows this line: Name Type Record mydomain.mydom...