Questions tagged [dns]

DNS QUESTIONS MUST BE PROGRAMMING RELATED. Use this tag for programming questions related to writing code that interacts with the Domain Name System (DNS); for example, writing code that uses gethostbyname()

Don’t use this tag for questions that aren’t about programming. StackOverflow as a site is only for questions about programming. If you have a DNS-related question about server configuration, DNS configuration, or other non-programming questions, consider instead posting on:

Background information on DNS

The Domain Name System (DNS) is a hierarchical naming system built on a distributed database. It translates domain names meaningful to humans into the IP addresses associated with the networking device. For example: www.stackoverflow.com => 64.34.119.12

One thing that DNS makes possible is changing the IP address while not changing the name. This allows moving the site to another provider, without requiring users to learn anything new. It is also possible to have several different DNS names resolve to the same IP address, and have the same http web server at that IP address handle the different names as different websites.

As already stated, DNS is hierarchical and distributed system. In looking up cs.luc.edu four different DNS servers may be required: for the so-called "DNS root zone", for edu, for luc.edu and cs.luc.edu. Searching hierarchy can be cumbersome, so DNS search results are usually cached locally.

Specification

The concepts of the Domain Name System are explained in RFC1034. The specification and implementation are described in RFC1035.

Reference

Domain Name System on Wikipedia

An Introduction to Computer Networks by Peter L Dordal


16205 questions
4
votes
1 answer

DNS dig command line tool returns "status: SERVFAIL". should I be worried?

Background: I've setup a site on Squarespace, got a domain on domain.com, used domain.com's DNS manager to create CNAME for squarespace (like they recommend). I changed the nameservers yesterday to slicehost (a failed experiment) and back to…
Matt
  • 1,950
  • 3
  • 15
  • 18
4
votes
2 answers

Chrome (and ONLY Chrome) Suddenly Can't Connect to Localhost Domains

Well this is odd. As of this morning, Chrome is responding with ERR_CONNECTION_REFUSED when it attempts to connect to web pages at various {subdomain}.localhost domains. Firefox and Safari both connect as normal. I am using Vagrant/Virtualbox…
phirschybar
  • 7,685
  • 12
  • 46
  • 62
4
votes
1 answer

ansible - how to pass local DNS server while running ansible-playbook to resolve hostname

I'm using ansible (ansible 1.9.0.1). I'm running ansible-playbook to perform some operations on a target / remote machine using it's hostname. My inventory file has an entry for a hostname i.e. appserver01.newdomainname.com When I run…
AKS
  • 14,113
  • 34
  • 144
  • 227
4
votes
2 answers

gethostbyname dual network interfaces, select which one to use

I have a c-program that needs to connect to a server and send a tcp payload and wait for the response. This works well for normal use but since I have two different network interfaces, let us call them if0 and if1 on the computer running the…
www.jensolsson.se
  • 2,861
  • 2
  • 30
  • 58
4
votes
1 answer

Appengine custom domain sometimes redirecting to google.com

I have an appengine application written in Java with a GWT frontend. I have my own DNS configured, through "domains" in the google admin console, to point to my appengine application. This configuration have been working very well for about three…
Hugo Pinto
  • 191
  • 1
  • 2
  • 5
4
votes
1 answer

Resolve mDNS .local URL in browser address bar

I am trying to run a HTTP server in my LAN and want to access it by using a browser on another desktop machine. As I do not like typing the IP address and port manually I tried setting up a mDNS using jmDNS. String type =…
Lucas Hoepner
  • 1,387
  • 1
  • 14
  • 21
4
votes
1 answer

Scrapy Could not find spider Error

I have been trying to get a simple spider to run with scrapy, but keep getting the error: Could not find spider for domain:stackexchange.com when I run the code with the expression scrapy-ctl.py crawl stackexchange.com. The spider is as follow: from…
Kristin
  • 89
  • 3
  • 9
4
votes
1 answer

Has anyone setup DKIM with the CakePHP Email Component?

Has anyone successfully setup "Domain Keys Identified Mail" in a CakePHP app with the built-in email component? I'm trying to implement part two of Jeff Atwood's spam protection…
Justin
  • 2,833
  • 5
  • 39
  • 64
4
votes
3 answers

DNS protocol message example

I am trying to figure out how to send out DNS messages from an application socket adapter to a DNSBL. I spent the last two days understanding the basics, including experimenting with WireShark to catch an example of message exchanged. Now I would…
AleIla
  • 193
  • 1
  • 5
  • 18
4
votes
4 answers

Making a WordPress site accesible from inside LAN and outside it

I configured WordPress on a PC inside my LAN. So I can access it from the same computer with localhost/WordPress or another pc on the LAN with IP/WordPress. I configured the router so port 80 is redirected to the server IP, but if a page is loaded…
Pijuli
  • 41
  • 1
  • 4
4
votes
1 answer

WinDivert issue - redirecting DNS back to self on windows

I was looking at basil00's torwall, and for fun was trying to pare it down to just intercept DNS. (provide an answer back to myself of 127.0.0.1 for webfiltering purposes, learning project) however, at this point, I have it hijacking the dns packet,…
4
votes
0 answers

How can I host multiple Flask Apps for Multiple Domains on Digital Ocean?

Using this guide I created a basic Flask App in Python. This worked well, and without nginx I could connect to it using my domain. The issue is, that this wasn't scaleable to multiple apps on one droplet. To do so, I tried this: I connected my…
user39991
  • 129
  • 5
4
votes
3 answers

Changing image domain / path in css for production?

Currently, for things like background images, our css files have no domain specified. This works both in our development and production environments. background-image: url(/images/bg.png); For performance reasons (cookie-less domain), we'd like to…
Neil
  • 135
  • 1
  • 11
4
votes
1 answer

Resolve domain from IP address using Ruby

I have requirements to find domain name using IP address using Ruby. I have some IP addresses. I got every time different random IP address. But I have to filter the IP addresses that have a domain name. How to find the domain name?
user1780370
  • 807
  • 1
  • 17
  • 27
4
votes
2 answers

Single URL to Multiple URL [sharepoint]

I'm hosting a site on a sharepoint site on an Intranet. I have multiple users who are in diffeent Federation Groups. Is there a way that I can publish a single URL to the Intranet, which redirects users to different URLS depending on the group…
KingJohnno
  • 602
  • 2
  • 11
  • 30
1 2 3
99
100