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


17147 questions
4
votes
0 answers

Secure DNS using Puppeteer

Is it possible to use Chromium's Secure DNS with Puppeteer on Linux? I can't see anything in the docs, nor has using command line arguments helped. Here's the code I used to try and launch the browser with secure DNS: const browser = await…
4
votes
0 answers

Is it ok to use interfaces as domain models instead of data classes on Android using Kotlin? (Clean Architecture and Domain Driven Design)

I'm trying to apply clean architecture on my android projects, but it is quite complex, now I'm stuck on this, according to Uncle Bob you should use a model for every layer (domain, data, presentation - in this case), so, typically we create a data…
4
votes
0 answers

Regarding mDNS observations on Wireshark

I am a beginner here, would like to clarify a few things. I have a server (OPC UA) running on my system, and the specification says it is announcing itself on the local link using DNS SRV records. On doing some research, I figured that mDNS is used…
4
votes
4 answers

http://bi/ It works! What kind of domain name is this?

I just mistyped a URL and the browser displayed a page saying "It works!" How does DNS resolve these names? What are they? ~> curl http://bi/

It works!

~> nslookup bi Non-authoritative answer: Name: …
Thilo
  • 257,207
  • 101
  • 511
  • 656
4
votes
2 answers

Jpa Entity as Domain Model

As per recommended practices documented for DDD or Hexagonal architecture - The domain Model should be separate from the data model representations that are more tied with actual technology used( table/column names, joins, etc, JPA annotation). A…
4
votes
1 answer

How do I force the Azure VPN Client to use the virtual networks's DNS servers

I have an Azure Virtual Network Gateway with P2S VPN setup using OpenVPN and Azure AD authentication. Works great as far as connectivity and routing. But it doesn't set the DNS servers from the vnet. It says it does in the Azure VPN client but…
Randy Knight
  • 241
  • 5
  • 10
4
votes
2 answers

Check Domain Availability from Rails

I'm trying to check domain name availability from my Rails app. Is there a good (free) API to do this with?
dshipper
  • 3,489
  • 4
  • 30
  • 41
4
votes
2 answers

what is the purpose of Java level DNS caching?

Currently I am working on an Android project. I have a doubt regrading java level DNS caching. Through search, I came to know that through calling the below mentioned functions we can achieve it. System.setProperty( "networkaddress.cache.ttl", "0"…
intrepidkarthi
  • 3,104
  • 8
  • 42
  • 75
4
votes
1 answer

?all -all and ~all in DNS (spf) configuration

I tried to configure/authenticate my domain DNS with email marketing services. To authenticate SPF I need to add some code. I want to use various services and in the TXT instructions they provide, at the end, some use -all, others ~all, and some…
IXN
  • 173
  • 1
  • 7
4
votes
1 answer

AWS EC2 - What can I accomplish with the public DNS hostname that I can't with the public IPv4 address?

Traditionally, the purpose of a DNS server is to translate human-friendly hostnames into IP addresses. More importantly, it allows for the updating of a service's location (IP address) on the network while retaining the same hostname. In EC2…
t.c
  • 623
  • 5
  • 19
4
votes
1 answer

How do I get the domain name in Windows 7

I've written a dll that runs an Excel add-in (some years ago). I use this code to retrieve the domain name and that works fine in Windows XP, but it fails in Windows 7. Only if I run as administrator does it work. However I don't want to run as…
Johan
  • 74,508
  • 24
  • 191
  • 319
4
votes
0 answers

Custom domain(Hostiner) in heroku not working without www

Recently i have purchase domain from hostinger and using heroku hosting but some how my domain working only with www. when i try to access url like example.com it shows me hostinger page. i have tried follwoing name as domain name in heroku custom…
ProBot
  • 133
  • 2
  • 12
4
votes
0 answers

Records not showing after adding nameserver in cyberpanel

I am trying to set up a custom nameserver in Cyberpanel, the following is what I've done: I have a GoDaddy account which have my primary domain(e.g primarydomain.com), the nameservers for this domain(primarydomain.com) is managed by Godaddy, I've…
4
votes
1 answer

How can I capture dns packets in c?

I'm writing a packet sniffer program in c. Now it can only find HTTP packets but I want to make it in a way to get also DNS packets. I know DNS packets are UDP but I don't know how to identify DNS ones. Is there a specific thing in DNS packets to…
Amir reza Riahi
  • 1,540
  • 2
  • 8
  • 34
4
votes
2 answers

Is left shifted short that is going to be stored in an int is UNDEFINED?

I was reading a book that implement a do it yourself DNS message reader and it tries to see if a particular field is set true. One piece of code the book uses I can't understand well. const int qdcount = (msg[10] << 8) + msg[11]; msg is ==> char…
KMG
  • 1,433
  • 1
  • 8
  • 19
1 2 3
99
100