The Domain Name System (DNS) is a hierarchical naming system built on a distributed database for computers, services, or any resource connected to the Internet or a private network.
133
votes
11answers
99k views
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 ...
130
votes
9answers
47k views
How to use Google app engine with my own domain (not subdomain)?
After hours of reading about and experimenting with DNS records I can access my Google app engine app via these URLs:
myappid.appspot.com
www.myappid.myowndomain.com
What does not work:
...
91
votes
12answers
64k views
Wildcards in a hosts file
I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called ...
68
votes
10answers
99k views
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?
56
votes
10answers
29k views
Mac OSX Lion DNS lookup order [closed]
After upgrading to Mac OSX Lion I figured out that /etc/hosts is not looked up in first place for name resolution anymore. This leads to some side effects like:
Entries in /etc/hosts are resolved ...
51
votes
2answers
6k views
Custom domain for GitHub project pages
I have a gh-pages branch in one of my http://github.com repos. The GitHub project pages works fine if I go to http://myuser.github.com/myrepo
I want to setup a custom domain (myexample.com) that will ...
49
votes
8answers
64k views
Does hosts file exist on the iPhone? How to change it? [closed]
I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network.
Now I need to test it with my ...
48
votes
9answers
103k views
How do I get a list of all subdomains of a domain? [closed]
I want to find out all the subdomains of a given domain. I found a hint which tells me to dig the authoritative Nameserver with the following option:
dig @ns1.foo.bar some_domain.com axfr
But this ...
47
votes
9answers
53k views
46
votes
8answers
22k views
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 ...
46
votes
12answers
16k views
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
...
46
votes
2answers
2k views
Node.js, Cygwin and Socket.io walk into a bar… Node.js throws ENOBUFS and everyone dies
I'm hoping someone here can help me out, I'm not having much luck figuring this out myself. I'm running node.js version 0.3.1 on Cygwin. I'm using Connect and Socket.io. I seem to be having some ...
45
votes
7answers
39k views
Can I use the /etc/hosts file to configure an alias
The /etc/hosts file can be used to override dns definitions, i.e. to point an hostname to a different ip.
I want to use /etc/hosts to make an alias record, i.e. to make my computer think that ...
45
votes
6answers
12k views
How do browser cookie domains work?
Due to weird domain/subdomain cookie issues that I'm getting, I'd like to know how browsers handle cookies. If they do it in different ways, it would also be nice to know the differences.
In other ...
35
votes
4answers
14k views
Static hosting on Amazon S3 - DNS Configuration
I'm working on a little webapp (all client-side) I want to host it on Amazon S3. I've found several guides on this and have managed to create myself a bucket (with the same name as my domain), set it ...