dns

How to make subdomain user accounts in a webapp

I am looking to allow users to control of subdomain of an app I am toying with, much like Basecamp where it is 'customusername.seework.com'. What is required on the DNS end to allow these to be created dynamically and be available instantly. And how do you recommend dealing with this in the logic of the site? Htaccess rule to lookup ...

Reverse DNS in Ruby?

I'm in an environment with a lot of computers that haven't been properly inventoried. Basically, no one knows which IP goes with which mac address and which hostname. So I wrote the following: # This script goes down the entire IP range and attempts to# retrieve the Hostname and mac address and outputs them# into a file. Yay!require "so...

How do I prevent dnsmasq from appending my domain name to invalid domain requests?

I use dnsmasq to resolve DNS queries on my home network. Unfortunately, if a domain name is not known, it will append my own domain name to the request which means that I always end up viewing my own site in a browser. For example, if I enter http://dlksfhoiahdsfiuhsdf.com in a browser, I end up viewing my own site with that URL. If I t...

How to redirect siteA to siteB with A or CNAME records

I have 2 hosts and I would like to point a subdomain on host one to a subdomain on host two: subdomain.hostone.com --> subdomain.hosttwo.com I added a CNAME record to host one that points to subdomain.hosttwo.com but all I get is a '400 Bad Request' Error. Can anyone see what I'm doing wrong? ...

How do I find the authoritative name-server for a domain name?

And for extra credit - Is it possible to find the origins of conflicting DNS records? ...

Does the PHP mail() function work if I don't own the MX record

Hey, I'm not sure I'm using all the correct terminology here so be forgiving. I just put up a site with a contact form that sends an email using the PHP mail() function. Simple enough. However the live site doesn't actually send the email, the test site does. So it's not my code. It's a shared host and we have another site that has t...

Redirecting ".local" subdomain to unicast DNS

I regularly access Windows domains that have been set up to use a domain under the .local top level name. This conflicts with Bonjour/Zeroconf which reserves .local for it's own use. A number of platforms support Bonjour out of the box (including Mac OS, iPhone, and Ubuntu) and there's numerous name resolution issues when this confict oc...

Redirect from domain name to a dotted quad hosted box

I have a php server that is running my domain name. For testing purposes I am running an asp.net on a dotted quad IP. I am hoping to link them together via either php or some kind of dns/htaccess voodoo. So if I go to www.mydomain.com/test it redirects (but keeps the url of (www.mydomain.com/test) in the main bar or awesome bar or wh...

Setting Nameservers - how?

I understand how I can change the dns settings for my domains by editing my bind configs, when I run my own nameservers. I know that I can define the nameservers with my registrar via their online control panels. But I have no idea how that part works... How does my registrar store the data about the nameservers? Is it something clever,...

How to use getaddrinfo_a to do async resolve with glibc

An often overlooked function that requires no external library, but basically has no documentation whatsoever. ...

How can I find the current DNS server?

I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible. ...

Blocking part of a website

I am trying to block Google Reader: reader.google.com www.google.com/reader The hard part is blocking the reader directory I blocked reader.google.com by changing my /etc/hosts file (this is for a Mac) Is there any way to block www.google.com/reader without buying software? Note this is for Safari so Greasemonkey won't work, and Le...

Does a caching-nameserver usually cache the negative DNS response SERVFAIL

Does a caching-nameserver usually cache the negative DNS response SERVFAIL? EDIT: To clarify the question, I can see the caching nameserver caching negative responses NXDOMAIN, NODATA. But it does not do this for SERVFAIL responses. Is this intentional? ...

Hosting a website on your own server

Is there a detailed guide which explains how to host a website on your own server on linux. I have currently hosted it on one of the commerical web-hosts. Also the domain is registered to a different vendor. Thanks ...

Python + DNS : Cannot get RRSIG records: No Answer

I get DNS records from a Python program, using DNS Python I can get various DNSSEC-related records: >>> import dns.resolver >>> myresolver = dns.resolver.Resolver() >>> myresolver.use_edns(1, 0, 1400) >>> print myresolver.query('sources.org', 'DNSKEY') <dns.resolver.Answer object at 0xb78ed78c> >>> print myresolver.query('ripe.net', 'N...

DNS- Route DNS for subfolder to different server?

LEt's say I want to have a subfolder called- http://www.foo.com/news/ but I actually want that news folder on a different server. I realize it can be done easily with subdomains, but I was really hoping for the subfolder thing. Is it possible? How? ...

Can I lookup the IP address of a hostname from javascript?

I would like to use javascript to determine the IP address of a host, as seen from the clients computer. Is it possible? ...

Regular expression to match hostname or IP Address?

Does anyone have a regular expression handy that will match any legal DNS hostname or IP address? It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for hostnames. ...

How does my shared host's nameserver resolve http://servername.com/~username/ to my top level domain?

I recently moved my website to a shared hosting solution at asmallorange.com, but I had to set my domain to use their provided nameservers in order for the site to properly resolve. I was determined to keep control of the domain's DNS but I could find no way to make my top level domain resolve to the shared location which was in the for...

Using glibc, why does my gethostbyname fail after I/DHCP has changed the DNS server?

If our server (running on a device) starts before a DHCP lease had been acquired then it can never connect using a hostname. If that happens it can find hosts by IP address but not by DNS. I initially thought that the Curl DNS cache was at fault as the curl connections failed. But I used CURLOPT_DNS_CACHE_TIMEOUT to prevent curl from c...