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

261 questions
99
votes
6 answers

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, why is this required?
dayuloli
  • 1,223
  • 1
  • 10
  • 18
68
votes
6 answers

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) at Host A. Surely it is possible to redirect…
Prembo
  • 867
  • 1
  • 6
  • 11
49
votes
4 answers

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…
30
votes
2 answers

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 become an alias of example.com. BUT, I've been…
Sorin Buturugeanu
  • 311
  • 1
  • 3
  • 4
20
votes
2 answers

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. IN A As far as I know, this record is deliberate (i.e. not an error). I know that the colon and forward-slash are valid…
Binky
  • 330
  • 2
  • 11
20
votes
3 answers

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 the A record every 1 minute?
Sean
  • 379
  • 2
  • 3
  • 8
15
votes
2 answers

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 gives 503 error (it's an API, so people are hitting…
11
votes
2 answers

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 network settings and before messing up all my DNS…
don
  • 215
  • 1
  • 4
11
votes
1 answer

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 changing a Name Server record from ns1.oldserver.com…
John
  • 7,153
  • 22
  • 61
  • 86
9
votes
4 answers

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 own both domains and both domains run on shared…
Dennis G
  • 588
  • 3
  • 6
  • 20
7
votes
1 answer

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 for WWW to support IPv6 traffic?
myNewAccount
  • 519
  • 1
  • 5
  • 14
7
votes
4 answers

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 also set the A Record as well? Thanks
H. Ferrence
  • 523
  • 3
  • 10
  • 18
7
votes
3 answers

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 at a static IP on one of WAN connections. (Say you do…
Myles Gray
  • 639
  • 4
  • 12
  • 33
7
votes
1 answer

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. I created a CNAME record as per instructions…
user116890
7
votes
3 answers

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.mydomain.com mydomain.com What would be the impact…
1
2 3
17 18