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()

dns
Filter by
Sorted by
Tagged with
146 votes
11 answers
309k views

jquery, domain, get URL

How can I get the domain name with jquery ??
AlexC's user avatar
  • 9,665
123 votes
4 answers
72k 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 ...
Merlin Mason's user avatar
  • 1,637
89 votes
3 answers
39k views

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 ...
Thach Lockevn's user avatar
80 votes
5 answers
188k views

How to redirect DNS to different ports [closed]

TL;DR: DNS resolution of a domain(s) must map to IP:port(s), instead of just IP. Example, sub1.example.com 🡲 192.0.2.4:4567 sub2.example.com 🡲 192.0.2.4:5678 I CAN modify DNS records. I own the ...
Swordstoo's user avatar
  • 855
57 votes
12 answers
141k views

Virtual network interface in Mac OS X

I know that you can make a virtual network interface in Windows (see here), and in Linux it is also pretty easy with ip-aliases, but does something similar exist for Mac OS X? I've been looking for ...
Hans Doggen's user avatar
  • 1,806
56 votes
1 answer
209k views

Docker-compose container using host DNS server

I'm running several containers on my "Ubuntu 16.10 Server" in a "custom" bridge network with compose 2.9 (in a yml version 2.1). Most of my containers are internally using the same ports, so there is ...
Olivier's user avatar
  • 2,042
55 votes
5 answers
70k views

Firefox invalidate dns cache [closed]

I was too quick about visiting a site I set up on a customer server, and Firefox now remembers, that the default site for (example) testsite.mycompanyname.com (non existing subdomain, same as *....
Steen's user avatar
  • 2,817
55 votes
2 answers
94k views

Why isn’t it possible to use a CNAME alias to Google Storage with HTTPS? [closed]

The Google Storage documentation page states that You can use a CNAME redirect only with HTTP, not with HTTPS. But I cannot see any reason for that. Can anyone explain me why?
qdii's user avatar
  • 12.8k
54 votes
1 answer
71k views

What is the maximum length of a DNS name

I saw several mentions that the maximum string length of a DNS name (domain name) is 253 characters. Wikipedia seems to be referring this old blog post: https://en.wikipedia.org/wiki/Hostname http://...
Nicolas Bouvrette's user avatar
53 votes
6 answers
126k views

Get domain name

My computer is in a Domain (Active Directory) and I need to get the domain name dynamically. I found the following code on the internet: SelectQuery query = new SelectQuery("Win32_ComputerSystem"); ...
Osvier's user avatar
  • 819
52 votes
6 answers
30k views

preconnect vs dns-prefetch resource hints

https://www.w3.org/TR/resource-hints/ If I understand correctly, both are used to initiate an early connection to load resources faster at a later time. preconnect is just doing "more". Apart from ...
Robin Drexler's user avatar
51 votes
4 answers
25k views

How to CNAME to Amazon API Gateway Endpoint

I'm trying to set a CNAME on Cloudflare to point to an Amazon API Gateway endpoint. The CNAME is for use when referring to one of my subdomains. The gateway in turn points to the IP of a server on ...
Silian Rails's user avatar
47 votes
9 answers
49k views

How do I to forward example.com to www.example.com at godaddy for s3 hosted site?

I have: signed up for an AWS account set up buckets for example.com and www.example.com enabled website settings in properties for each domain set bucket policies for both domains created this cname ...
empathysage's user avatar
44 votes
3 answers
10k views

GitHub Pages https/www Redirect

How can I get https://www.test.com to redirect to https://test.com when using GitHub pages to host a static website? I recently enabled TLS (provided by GitHub/Lets Encrypt) for my static site by ...
pdoherty926's user avatar
42 votes
7 answers
53k views

Too many DNS lookups in an SPF record

My website needs to send out emails with Google Apps, SendGrid and MailChimp services. Google Apps is used to receive and read incoming email to my domain. I need to set the SPF record for my domain. ...
Robert's user avatar
  • 559
39 votes
3 answers
127k views

Android: Flush DNS [closed]

We recently released an android application that pulls information from an external server. Last week we moved from shared hosting to a dedicated server, that went smoothly up until we started ...
user254919's user avatar
39 votes
7 answers
24k views

MySQL Query to Count Unique Domains from Email Address field

I'd like to get a better idea of what domains my customers are using. I could easily do this in PHP by explodeing each address and counting the domain that way. But I'm wondering if there's a way to ...
Ian's user avatar
  • 12.1k
38 votes
2 answers
42k views

Using GoDaddy Domain Hosting to link to Amazon S3 Website [closed]

So I have some domains hosted at GoDaddy.com. I am trying to avoid to pay for a hosting service, except for using a static Amazon S3 page (as I don't expect much traffic at all for these sites). I ...
marc's user avatar
  • 405
37 votes
6 answers
101k views

Domain doesn't work without `www`

When I type in my domain name like without the www (like http://example.com), it doesn't work and gives error message. However, when I add the www to it (like http://www.example.com), it works. Isn't ...
Digital site's user avatar
  • 4,427
36 votes
4 answers
22k views

Does Alpine have known DNS issue within Kubernetes?

Lately, we've faced some DNS issues with micro-services based on Alpine image (node:12.18.1-alpine) on EKS when trying to resolve "big" DNS queries (When the answer is larger than 512M). So ...
Shahaf Yehezkel's user avatar
29 votes
1 answer
20k views

Domain names with dots at the end

What is the difference between: domainname and domainname. ? For instance, let's suppose msn.com and msn.com.. I tried both here: http://http-headers.online-domain-tools.com/link/...
MartyIX's user avatar
  • 28.3k
28 votes
8 answers
14k views

How to host an entire site on Google Cloud Storage?

Is there any way to host an entire site on Google Cloud Storage? That is, map a bucket directly to a top level domain. E.g. create a bucket called mysite.com, then when the user visits mysite.com ...
rossmckegney's user avatar
27 votes
2 answers
39k views

Node.js dns.resolve() vs dns.lookup()

I need to lookup a given host to its corresponding IP in Node.js. There seems to be two native methods of doing this: > dns.resolve('google.com', (error, addresses) => { console.error(error); ...
Justin's user avatar
  • 44.1k
25 votes
1 answer
25k views

How to create a subdomain and how do they work?

I would like to create a subdomain off of my main domain for accessing my raspberry pi at home. My domain register company charges £10 for every subdomain so I thought there might be an easier (and ...
Marmstrong's user avatar
  • 1,716
23 votes
5 answers
15k views

Why golang Lookup*** function can't provide a server parameter?

For nslookup command, it has nslookup somewhere.com some.dns.server. However, it seems that golang dnsclient only load config from /etc/resolv.conf code here: https://golang.org/src/net/...
holys's user avatar
  • 14.3k
22 votes
8 answers
30k views

Why does MSMQ think I'm on a workgroup computer?

My computer is connected to a domain, but when I go to create a public queue: MessageQueue.Create(@".\testqueue"); I get this error: A workgroup installation computer does not support the ...
Mike Pateras's user avatar
  • 14.9k
22 votes
5 answers
85k views

Is it possible to find all DNS subdomains for a given domain name? [closed]

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar ...
smartins's user avatar
  • 3,828
22 votes
3 answers
8k views

How do you test the effects of dns-prefetch and preconnect

I'm trying out the <link rel="dns-prefetch"> and <link rel="preconnect"> tags and I'm trying to see whether they help for my site. I can't find any online resources about how verify if ...
webbower's user avatar
  • 776
21 votes
5 answers
25k views

Java DNS cache viewer

Is there a way to view/dump DNS cached used by java.net api?
Chandra Patni's user avatar
21 votes
3 answers
33k views

how to use Kubernetes DNS for pods?

On GKE, kube-dns is running on my nodes, I can see the docker containers. I do have access to Services by name, which is great for all these applications where load balancing is a perfectly suitable ...
MrE's user avatar
  • 20.3k
20 votes
1 answer
35k views

What is the best way to create a whois lookup? [closed]

I want add a domain registration in a website written with PHP. So I need a whois lookup service. What do I need to do? What's are its steps? Do I need a database, API or ... ? Help me please
Mohammad Saberi's user avatar
19 votes
2 answers
9k views

Persistent storage of encrypted data using .Net

I need to store encrypted data (few small strings) between application runs. I do not want the user to provide a passphrase every time (s)he launches the application. I.e. after all it goes down to ...
Sunny Milenov's user avatar
18 votes
5 answers
12k views

Rails - Multiple top level domains and a single session/cookie

I've been struggling with this for quite awhile and haven't been able to find a solution. I need a user to be able to view multiple top level domains with a single login. My understanding is that ...
user avatar
18 votes
1 answer
12k views

How to expose kube-dns service for queries outside cluster?

I'm trying to expose the "kube-dns" service to be available to be queried outside of the Kubernetes cluster. In order to do this I edited the "Service" definition to change "type" from "ClusterIP" to "...
srkiNZ84's user avatar
  • 3,568
17 votes
2 answers
25k views

Domain name resolution not working in Java Applications on Ubuntu64 9.04 machine. All other software resolves DNS correctly

I have an number of Java applications installed on an Ubuntu64 9.04 PC, and none of them can resolve domain names (there are multiple JRE's too - some of them are IBM products). If I put the domain ...
komma8.komma1's user avatar
17 votes
3 answers
16k views

Get domain without subdomain from a URL

What is the proper way to get the domain from a URL without the subdomains? In Java, from a string you can make a new URL(urlString) and call getHost() on the URL, but you have subdomains with it. ...
James Smith's user avatar
16 votes
5 answers
6k views

Google App Engine and domain name

Here is the situation: I own a Google Apps for Business account. I have two domain names registered : mycompany.com which is the principal domain myapp.com which is another domain Note: both ...
Nicolas Repiquet's user avatar
16 votes
1 answer
8k views

How to use NEDNSProxyProvider in iOS 11

On the networking side, DNS Proxy is one of the biggest features of iOS 11. But they haven't provided much documentation or samples regarding it. There's a talk on it as well where they have just ...
mayuur's user avatar
  • 4,736
16 votes
2 answers
34k views

Getting members of an AD domain group using Sharepoint API

In my Sharepoint code I display a list of all defined users via: foreach (SPUser user in SPContext.Current.Web.AllUsers) { ... } The great part is, I can add a domain security group to a ...
Robert Koritnik's user avatar
15 votes
5 answers
6k views

Unable to handle exception with node.js domains using express

I want to use Node.js Domains to catch exceptions. It is working so far, but there is one place I can't get domains to catch the exception. exception2 in the callback is caught and handled in the ...
user1007983's user avatar
13 votes
4 answers
17k views

Perform a DNS lookup to resolve a hostname to an IP address using JavaScript

Is it possible to resolve a hostname using Javascript? Here would be hypothetical code: var hostname = "www.yahoo.com"; var ipAddress = DnsLookup(hostname); console.log(ipAddress); I am looking for ...
Amir's user avatar
  • 6,106
13 votes
8 answers
10k views

Checking domain name availability with DNS records

How accurately can a domain name's availibility be determined by checking for the existence of NS or SOA (Start of Authority) records? If not, how can I determine this as accurately as possible ...
Petrus Theron's user avatar
12 votes
1 answer
5k views

New domain is both registered with and hosted at AWS Route 53 but resolution fails

I have registered the domain duhastdiewahl.org at Amazon AWS Route 53. I do it step for step like this: http://share.pho.to/AAUSM Create Hosted Zone (NS/SOA-Record default) Add A-Record to my ...
Dude420's user avatar
  • 123
12 votes
5 answers
7k views

Do Domain Classes usually get JPA or JAXB Annotations or both?

I have a Java enterprise application that provides a web service, has a domain layer, and a hibernate persistence layer. In this particular case, there is not a huge difference (at the moment) ...
Dave's user avatar
  • 21.7k
11 votes
4 answers
4k views

How to give cname forward support to saas software

I have a webapp where users can create their account and use the service. Now I want to give them a custom domain facility where app.customer1web.com points_to myservice.com with userid ...
Thejesh GN's user avatar
  • 1,108
11 votes
4 answers
16k views

How do I resolve an SRV record in Python?

Something which doesn't rely on native libraries would be better.
Gili Nachum's user avatar
  • 5,458
11 votes
1 answer
13k views

Programmatically obtain DNS servers of host

Using C++, I would like to obtain the DNS servers being used by a host for three operating systems: OS X, FreeBSD, and Windows. I'd like confirmation that the approaches below are indeed best practice,...
Nicholas Palko's user avatar
11 votes
5 answers
15k views

Is there a way to flush the DNS cache from a C# WPF app? (on XP, Vista, Win7)

Is there a way to flush the DNS cache from a C# WPF app? The application would be running on either XP, Vista, or Windows 7.
Greg's user avatar
  • 34.5k
10 votes
7 answers
32k views

How might I perform DNS lookups using C/C++ on Linux?

How do I get similar functionality to the host command using a c api (or any other language for that matter)? I need more information than just an IP address given by gethostbyname(); specifically, ...
hacim's user avatar
  • 281
9 votes
3 answers
5k views

Regex to match Domain.CCTLD

Does anyone know a regular expression to match Domain.CCTLD? I don't want subdomains, only the "atomic domain". For example, docs.google.com doesn't get matched, but google.com does. However, this ...
Tom's user avatar
  • 283

1 2 3
4
5
27