Skip to main content

Questions tagged [a-record]

An A record is a type of DNS record that maps a name to an IP address. For example, the A record for serverfault.com is 64.34.119.12

Filter by
Sorted by
Tagged with
104 votes
6 answers
68k views

Why can't MX records point to an IP address?

I understand you should not point a MX record at an IP address directly, but should instead point it to an A record, which, in turns, points to the IP address of your mail server. But, in principle, ...
dayuloli's user avatar
  • 1,293
75 votes
6 answers
382k views

How to redirect domain A to domain B using A-Records and CNAME records only

I have 2 domains hosted with different hosts. I need to redirect Domain A to Domain B. Unfortunately I can't do a 301 redirect from Host A, but can only modify/add DNS entries (A-Records and CNAMEs) ...
Prembo's user avatar
  • 937
50 votes
4 answers
11k views

Can someone using the same DNS server as me hijack my domains?

When I register a new domain, I send it to my hosting provider by assigning it its domain name servers in the registar's settings. For example, with Digital Ocean, I input the following: ns1....
Eran Galperin's user avatar
35 votes
2 answers
78k views

www a-record vs cname-record

I have set up DNS for my website so that example.com is an A record (pointing to the IP), but I don't know what to do about www.example.com. I intend to add a CNAME record www.example.com so it would ...
Sorin Buturugeanu's user avatar
20 votes
2 answers
7k views

DNS A record with https:// in the label

I recently encountered for the first time an A record of the form: https://www.example.com. <TTL> IN A <IP address> As far as I know, this record is deliberate (i.e. not an error)....
Binky's user avatar
  • 330
20 votes
3 answers
15k views

CNAME and A record have different TTLs. Which one will be cached?

If a CNAME has a TTL of 1 hour that points to an A record with a TTL of 1 minute, will someone who looks up this CNAME have the entire result cached for 1 hour, or will it will keep having to lookup ...
Sean's user avatar
  • 379
20 votes
2 answers
48k views

Can I have 2 A records for the same domain

I have a domain set up on my hosting account, which is a shared host. It has been doing fine, but as the site becomes more popular the response times are getting slower and slower, and sometimes ...
CᴴᵁᴮᴮʸNᴵᴺᴶᴬ's user avatar
12 votes
1 answer
25k views

What happens when I change a Name Server record or an A record in the Zone file or the DNS settings?

I don't really understand how the internet and DNS works. I am inundated with terms I don't understand when trying to read about it on wikipedia. I don't have a computer science background. When ...
learningtech's user avatar
  • 7,549
11 votes
2 answers
518 views

Changing A record and CNAME records

Currently I'm using a LAMP configuration for both my landing page page, for the web app, and for the APIs. Now I'd like to split these things across multiple Virtual Servers (VS). I'm unsure of the ...
don's user avatar
  • 215
10 votes
4 answers
52k views

Redirect subdomain.example.org to somethingelse.com hidden to the user?

I'm not knowledgeable at all about C-NAMES, A-RECORDS, name servers and the like, so just bear with me on this one: I want to redirect subdomain.example.org to another domain somethingelse.com. I do ...
Dennis G's user avatar
  • 628
8 votes
4 answers
12k views

DNS NS Records vs A Record

I wish to have someone point and resolve their domain to my web server to begin serving their pages. Is it enough to have the person set only the NS1 and NS2 records to my name server, or must they ...
H. Ferrence's user avatar
8 votes
3 answers
7k views

Best practice for placing DNS records and subdomains

Say I have mydomain.com: Is it better to use option A: [A] mydomain.com 123.45.67.89 [A] www.mydomain.com 123.45.67.89 or option B: [A] mydomain.com 123.45.67.89 [CNAME] www....
nightrod's user avatar
  • 113
8 votes
5 answers
18k views

Is a subdomain with both A records and NS records valid?

Let's say I own example.com. I then create an A record on test.example.com to 1.1.1.1. I then create a NS record on test.example.com to ns1.anotherdnshost.com. At another DNS host, I add an A ...
F21's user avatar
  • 706
8 votes
1 answer
4k views

After creating an A DNS record for WWW is it also necessary to create a AAAA record for WWW?

I'm using an A DNS record to translate WWW for IPV4 traffic. It looks like this: DNS records TYPE: A HOSTNAME: www.mywebsite.example VALUE: directs to 192.168.0.1 Do I need to add an AAAA record ...
myNewAccount's user avatar
7 votes
3 answers
17k views

A-Record Failover?

I have a Fortigate 100D with 2x BT Business Infinity Fibre connections acting as WAN1 & WAN2. The BT lines come with 5 static public IPs each and I have my DNS hosted through CloudFlare pointing ...
mylesagray's user avatar
7 votes
4 answers
12k views

Why are Amazon EC2 Elastic IPs encouraged to be used with a CNAME rather than an "A" record?

I am setting up a server on EC2 that will be used by people that will be freaked out when they see ec2-111-111-111-111.compute-1.amazonaws.com in the URL bar. I know this would be solved by using an ...
Canuk's user avatar
  • 183
7 votes
3 answers
4k views

A Record VS. Cname Round N

Experienced DNS Admins please help me understand... I run a small DNS server in a development environment that runs resolution for at most 5 domain names at any one time. My question stems from a ...
Patrick R's user avatar
  • 2,975
7 votes
1 answer
4k views

Wildcard 'A' record overriding CNAME record

I have a Wildcard * A record for self-registration of subdomains by users on our web app. All works fine. I now need to set up an alias for support.mydomain.com to point to mydomain.freshdesk.com. ...
user avatar
6 votes
3 answers
10k views

What has priority: nameservers or a records?

If I have a domain name with nameservers pointing to Webhost One, but have an A Record that points to Webhost Two, which host would the domain name bring me to? I'm pretty sure the A Record takes ...
bozdoz's user avatar
  • 173
6 votes
4 answers
17k views

Is setting an empty/blank DNS A record allowed?

I'm trying to wrap my head around the wonderful world on DNS. I have created a zone file for example.com which contains: @ A 1.2.3.4 * A 1.2.3.4 However I am also setting up my local ...
John's user avatar
  • 113
5 votes
3 answers
2k views

CNAME versus an additional A&AAAA record

So, let us say that we have set-up an A record and an AAAA record for @, and for www we have set-up a CNAME pointing to @. When a new visitor visits example.com and the webserver sends a 301 ...
Xen's user avatar
  • 468
5 votes
4 answers
843 views

should Apex domains (and records) be avoided?

I'm building an app that is hosted on Heroku. Heroku suggests that Apex Domains are a Very Bad Idea -- they suggest using CNAME records and a workaround service like Zerigo or DNSSimple. However, ...
jcollum's user avatar
  • 436
5 votes
1 answer
8k views

Pingdom error: "No delegation could be found at the parent" when analyzing subdomain

I have a subdomain dramarsarin.crimsonandcyan.com which i wanted to point to another server. I added an A record in the zone file for crimsonandcyan.com with the host 'dramarsarin' and pointed it to ...
Kanishk Dudeja's user avatar
5 votes
2 answers
3k views

Best CNAME TTL strategy for fallover switching

I've recently been thinking about the TTL of our DNS. We have A records for our servers and then CNAME records for the customer facing names. The www.example.com CNAME points to server-01.example.com ...
Phil Hannent's user avatar
5 votes
2 answers
3k views

Django App Public IP Works but `400 Bad Request Error` when A Record Update

I've got a Django application deployed on an Ubuntu 16.04 EC2 instance using nginx and gunicorn. Unfortunately, after a successful deployment with my public IP, updating my A record with the public ...
twk's user avatar
  • 201
4 votes
2 answers
41k views

A DNS record for both www and non-www websites

For each website I have, I noticed that having just this A DNS record: *.example.com 3600 A 0 192.1.2.3 will make http://example.com unavailable and having just this A DNS record: example....
Basj's user avatar
  • 769
4 votes
2 answers
31k views

how do you add an A record for a root domain

this seems really simple, but I can't figure it out. I'm using xname.org since it's free and I own a bunch of domains spread over a few different registrars. The setup I desire is very simple: one A ...
nbv4's user avatar
  • 603
4 votes
1 answer
6k views

Where does the "A" record go for a sub-domain?

I'd like to create a sub-domain, like sub.example.com. I have already configured example.com with NS "glue" records to point to the DNS server which will manage the sub-domain. They look like: sub ...
Christopher's user avatar
4 votes
2 answers
488 views

Is @ the same as the IP address for @ in the MX record entry of a zone file?

I have the following configuration in my DNS Zone. I want to switch the @ record to a different IP address, but I want to keep the MX records the same. Please note the IP address has been changed to ...
cwd's user avatar
  • 2,793
4 votes
1 answer
2k views

Add A, AAAA, and CNAME record for google app engine project in google cloud platform

I am adding a new google app engine project and trying to map it to a subdomain. I have already created a CNAME which maps newmachine.mycompany.com to newproject.appsport.com, and I am able to use ...
Anthony Kong's user avatar
  • 3,518
4 votes
1 answer
2k views

Avoiding downtime while switching CNAMEs with AWS's Route53

I'm trying to make a seamless transition from Heroku to AWS. Currently, DNS is being handled by Route53, with a CNAME record sending traffic to the heroku SSL subdomain. I need to change this to an A ...
Dan Fried's user avatar
  • 100
4 votes
0 answers
622 views

How do large SaaS providers support A records? [closed]

According to RFC 1035 CNAME records cannot be used used in a zone apex because a CNAME record cannot exist alongside records such as SOA. This is frequently a source of frustration for those trying ...
thexacre's user avatar
  • 1,859
3 votes
1 answer
325 views

How would you setup a up an A record for any negative query?

How would I go about setting up an A record for in Bind9 for any negative queries? I want to forward our staff to an informational page if they were to visit a non existent domain. We have an internal ...
Kladskull's user avatar
  • 1,275
3 votes
3 answers
1k views

Do CNAME records overrule A records?

I have several A records like so: Subdomain IP Address example.example.com 198.51.100.0 example.com 203.0.113.0 And a CNAME record that looks like this: Alias ...
James's user avatar
  • 153
3 votes
2 answers
6k views

What is the significance of a period (.) in domain names?

The above image shows the output of a DNS response message using dig command . Why is there a period (.) after .com (like com. )
Rakesh Nittur's user avatar
3 votes
1 answer
520 views

A record required for MX record?

Previously our domain, let's call it ourdomain.com, pointed to an IP address (our web host). In addition, we use Office 365 to handle our domain email accounts. DNS records: ourdomain.com A ...
Dave New's user avatar
  • 155
3 votes
1 answer
3k views

Order of DNS A records and wilcard subdomains

I have read Multiple wildcard dns entries and know the limitations/drawbacks of wildcard DNS entries, but I have a question about the order in which it is listed by my registrar: example.com A ...
Basj's user avatar
  • 769
3 votes
2 answers
6k views

How to set up CNAME to point to Azure

Here's the story. I have an application on azure. I would like to set up an A-record. My main domain is myhost.dk and my azure adress is myhost.azurewebsites.net. The Azure guide says that I have to ...
Kasper Skov's user avatar
3 votes
2 answers
8k views

Setting up publicly-accessible DNS name in Google Cloud DNS

I am moving from Microsoft Azure to Google Cloud, and I would like to be able to publicly access one of my virtual machines at myapp.uswest.cloudapp.google.com instead of its external, static IP ...
Alexander's user avatar
  • 184
3 votes
2 answers
7k views

PowerDNS CNAME with multiple A records produces unexpected results

This problem from what i can tell is isolated to PowerDNS. The servers are running two packages pdns-static-3.0.1-1.i386.rpm and pdns-recursor-3.3-1.i386.rpm on the most recent version of Amazon Linux....
bwight's user avatar
  • 791
3 votes
1 answer
5k views

How to set up a BIND DNS server to respond a single IP address to any request on Windows?

I want to configure a BIND DNS server (since Windows Web Server 2008 does not have DNS service, I had to install BIND) that responds any request with a single A record. I had set up a * record but it ...
mmx's user avatar
  • 502
3 votes
2 answers
2k views

CloudFlare offers DNS root CNAMEs. Any resolution gotchas to be aware of?

I'm not that familiar with the inner workings of DNS, preferring to just add my CNAMEs and A records as appropriate, and leave the behind the scenes to other services. I host a few sites on Amazon S3, ...
jvc26's user avatar
  • 143
3 votes
1 answer
708 views

Best practices for managing the IP addresses you own in DNS and their PTRs?

I was wondering how exactly the big companies go about managing all the IP addresses that their public servers use, especially in respect to setting up correct PTR-records. This is very important, ...
Kevin F's user avatar
  • 31
3 votes
1 answer
2k views

Windows Server 2008 - Zone Scavenging - "This zone can be scavenged after"

I have set up DNS scavenging on our Windows Server 08 R2 boxes as we had records in there that were duplicated and some dating back to 2004! I set the no-refresh and refresh-after intervals both to 3 ...
mylesagray's user avatar
3 votes
1 answer
5k views

Disable AAAA lookups in libcurl

We have a step during in of our large map reduce that does DNS resolutions. The application itself uses the c-ares library as well as libcurl. I notice that with each resolution, there is first an ...
Stephen Wood's user avatar
3 votes
1 answer
2k views

Multiple DNS records pointing to a single domain

Our business currently subscribes to a DSL internet connection. We're moving away from this and in fact will have two 3Mbps dedicated fiber connections run into our operations center in the coming ...
JohnyD's user avatar
  • 1,624
3 votes
1 answer
2k views

Confused on DNS for G Suite + third party web host

I've been digging for an answer to my question, but my searches keep turning up edge cases, which surely this is not. As is often the case, Google's own support either over-answers or doesn't provide ...
ghowell's user avatar
  • 33
3 votes
2 answers
4k views

Is a CNAME sufficient for a www. record?

I have been doing a server migration, and checking that everything related to DNS is configured correctly by using IntoDNS. After doing this though, it flags up a error saying that there is no A ...
Alex Blundell's user avatar
2 votes
5 answers
1k views

Is Downtime Needed after changing the Ip Address of A Subdomain?

I have a subdomain whose DNS A Record I would like to change. After doing this, do I have to wait for some time before the change will be reflected? If yes, during the downtime is it possible to put ...
Jeune's user avatar
  • 155
2 votes
2 answers
2k views

Using www.example.com as the A record

I want example.com and *.example.com to always resolve to www.example.com So if I set the DNS records as: www A server ip (root) CNAME www.example.com * CNAME www....
Spoonface's user avatar
  • 207

1
2 3 4 5 6