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
72
votes
2 answers

How do I solve the "server DNS address could not be found" error on Windows 10?

After installing Windows 10, I am continuously getting the "server DNS address could not be found" error. I will be able to use the Internet for 4-5 minutes, and after that for 20-25 min I will get the above error. How do I resolve this issue?
Dixit Singla
  • 2,346
  • 2
  • 20
  • 34
68
votes
3 answers

Is it possible to have one (single) character top level domain name?

I'm writing a Regex to validate email. The only one thing confuse me is: Is it possible to have single character for top level domain name? (e.g.: lockevn.c) Background: I knew top level domain name can be from 2 characters to anything (.uk, .us to…
Thach Lockevn
  • 1,221
  • 1
  • 10
  • 14
68
votes
2 answers

Using dig to search for SPF records

I am using dig installed on my machine to search for SPF records for a particular domain. Is there a way to search a particular DNS server for the SPF records? For example, will the following work? dig domain.com txt host ns1.nameserver1.com dig…
bjtilley
  • 1,823
  • 3
  • 17
  • 22
68
votes
1 answer

DNS redirect domain.com to www.domain.com

I have performed a web search for the question but totally disappointed with the results. The case is to redirect all requests to domain.com to subdomain www.domain.com. So what I have: www.domain.com - main website domain, all client requests…
Maksim
  • 857
  • 2
  • 7
  • 6
67
votes
4 answers

DNS caching in linux

I am confused about DNS caching. I am writing a small forward proxy server and want to use OS DNS cache on a Linux system. If I understand correctly, then there is DNS caching at the browser level. Then there is DNS caching at OS level (Windows has…
agent.smith
  • 8,106
  • 8
  • 32
  • 45
64
votes
5 answers

How to redirect DNS to different ports

TL;DR: DNS resolution of a domain(s) must map to IP:port(s), instead of just IP. Example, sub1.example.com 1.2.3.4:567 sub2.example.com 1.2.3.4:678 I CAN modify DNS records. I own the domain "Arboristal.com". I also own all sub domains privately on…
Swordstoo
  • 685
  • 1
  • 6
  • 9
63
votes
4 answers

Can HTML5 databases and localStorage be shared across subdomains?

I am attempting to share data across subdomains using Safari. I would like to use an HTML5 database (specifically localStorage as my data is nothing but key-value pairs). However, it seems as though data stored to domain.com can not be accessed from…
Sebastian Celis
  • 12,052
  • 6
  • 33
  • 44
63
votes
1 answer

Is it ok to remove Google TXT verification records after I've authorized my domain with Google?

For Google Analytics, I had to prove that I owned my domain. I added a TXT record to do this. I also had to prove to Microsoft that I owned my domain by uploading a file (BingSiteAuth.xml) to my site. Now that I'm up and running with Analytics and…
John
  • 2,123
  • 4
  • 30
  • 52
62
votes
14 answers

DNS problem, nslookup works, ping doesn't

I am setting up a development server in my flat. I have set up an Ubuntu DNS server on it and have added the zone weddinglist (just weddinglist - no TLD. It's just an internal domain.) This works fine on my Ubuntu laptop. On all my Windows PCs…
user42088
  • 621
  • 1
  • 5
  • 3
60
votes
1 answer

Assigning a domain name to localhost for development environment

I am building a website and would not like to reconfigure the website from pointing to http://127.0.0.1 to http://www.example.com. Furthermore, the certificate that I am using is of course made with the proper domain name of www.example.com but my…
fixedpoint
  • 1,435
  • 1
  • 16
  • 24
60
votes
5 answers

Google Domain - DNS Configuration for Firebase Hosting - Connect Domain

I am trying to connect my firebase app in to a domain -where the domain purchesd from google.Need help to to do the setup for DNS configuration. my app is working fine in firebase app. firebase app is - https://.firebaseapp.com/ My Firebase…
Manu
  • 1,071
  • 4
  • 15
  • 34
59
votes
6 answers

Can I configure a subdomain to point to a specific port on my server

I have an old computer which I converted into a minecraft server. I have 2 minecraft servers running simultaneously, one on port 25565 (default) and one on port 25566. I bought the domain something.com and pointed it to my server. Right now, in…
alecwhardy
  • 2,314
  • 5
  • 23
  • 32
59
votes
6 answers

How to reach docker containers by name instead of IP address?

Is there a way I can reach my docker containers using names instead of ip addresses? I've heard of pipework and I've seen some dns and hostname type options for docker, but I still am unable to piece everything together. Thank you for your time. I'm…
Zhao Li
  • 3,184
  • 5
  • 28
  • 43
58
votes
6 answers

Firebase hosting not validating TXT record in GoDaddy

I deployed my app and now I'm trying to add my custom URL. I followed Firebase's instructions and added their TXT record to my DNS (GoDaddy). But now Firebase is saying it's still not verified. I assume I'm doing something wrong, but there's not…
DoubleTri
  • 741
  • 1
  • 6
  • 13
58
votes
5 answers

Cloud Functions for Firebase - getaddrinfo ENOTFOUND

Trying to make a request to Paypal's API using PayPal-node-SDK exports.requestPayment = functions.https.onRequest((req, res) => { return new Promise(function (fullfilled, rejected) { paypal.payment.create(create_payment_json, {},…
user47376
  • 2,173
  • 2
  • 17
  • 26