Visit Our UNIX and Linux User Community


Changing hosting company for one domain, how to deal with DNS?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Changing hosting company for one domain, how to deal with DNS?
# 1  
Old 01-25-2020
Changing hosting company for one domain, how to deal with DNS?

Hello,

Our organization is planning to move one domain from Dreamhost to Hubspot. Lets say, it is gem.xyxyxyxyx.com. Please note, website is not being migrated from one server to another, it is just hosting company.

Here is from our internal DNS master server -
Code:
[root@ext-dns-ns1 ~]# cat /var/named/master/db.xyxyxyxyx.com | grep gem
gem                     IN      NS      ns1.dreamhost.com.
gem                     IN      NS      ns2.dreamhost.com.
gem                     IN      NS      ns3.dreamhost.com.
gem                     IN      A       69.163.167.103
www.gem                 IN      CNAME   gem
[root@ext-dns-ns1 ~]#

And this is root domain A record -
Code:
[root@ext-dns-ns1 ~]# cat /var/named/master/db.xyxyxyxyx.com | grep 69.163.164.199
                        IN      A       69.163.164.199
www                     IN      A       69.163.164.199
[root@ext-dns-ns1 ~]#

Ideally, (I assume) when we move hosting agency, we get new IP and replace 69.163.167.103 and 69.163.164.199 with the IPs they will give.

But here twist is, HubSpot is only able to host content for subdomains using CNAME records. They provide a CNAME address that can be used (the associated IP address is dynamic and will not be static for security purposes). But our DNS records, both hosted as A records, at present.
HubSpot is unable to offer IP addresses for use with A records. They replied "We usually rely on the redirection services that DNS providers sometimes offer, but in the event that the DNS provider does not have a means of redirecting the root domain to the subdomain, we typically recommend a third party redirection service. I'd suggest setting up an account with Redirect.pizza".

If I go by suggestion from HubSpot, I guess I need to make below change -
Code:
temp-test-site.xyxyxyxyx.com IN A ip-provided-by-redirect-pizza

And configure this name at RedirectPizza to look to, for example, xyxyxyxyx.com site. Then remove below records :
Code:
gem IN NS ns1.dreamhost.com.
gem IN NS ns2.dreamhost.com.
gem IN NS ns3.dreamhost.com.

From the main zone xyxyxyxyx.com and define these names like that:
Code:
gem IN CNAME new-hubspot-cname-for-gem.
www.gem IN CNAME gem

I have two concerns/questions is :
- For an enterprise-level DNS, will it not be difficult to trust on a free service website (https://redirect.pizza)? What if the website shuts down, my all sub-domains can break, right? Any I explore any other option rather than redirect.pizza?

- Can there be any interruption on website gem.xyxyxyxyx.com during these IPs/CNAMES are being populated?

Please suggest.

Thanks
# 2  
Old 01-26-2020
This is all controlled by the TTL (time-to-live) settings of your DNS entries.

Long before any such transition is done, you should set the TTL of all your DNS entries to the shortest possible time.

As I recall, the shortest TTL most DNS providers permit is around 5 or 10 minutes, but please check me on that. YMMV based on DNS provider.

Because DNS is cached in the global Internet, you need to begin this "set our DNS TTLs short" long before the transition process.

The first step is to know what your current TTLs are.

Do you know the value of this critical metric?
# 3  
Old 01-26-2020
Yes, I understand this metric. It is set to 3600. NS are pointed on Network Solutions, which says their minimum is also 3600. From their website - "Network SolutionsĀ® allows a minimum of 3600 (1 hour)"
Code:
[root@ext-dns-ns1 ~]# cat /var/named/master/db.xyxyxyxyx.com | head -14
$TTL    3600
@ IN  SOA dns1.xyxyxyxyx.com. id-chm.xyxyxyxyx.com.com.   (
                                        2020010172      ; Serial
                                        86400           ; Refresh
                                        7200            ; Retry
                                        3600000         ; Expire
                                        172800          ; TTL
                                                        )
;
                                IN  NS          dns1.tcs-sb.net.
                                IN  NS          dns2.tcs-sb.net.
                                IN  NS          dns3.tcs-sb.net.
                                IN  NS          dns4.tcs-sb.net.
;
[root@ext-dns-ns1 ~]#

# 4  
Old 01-26-2020
Hmmmm. 3600 is a very long time (for cutovers and changes to the network) and not really acceptable for transitions.

Plus, I'm not sure I trust this $TTL 3600 in your output.

Code:
172800          ; TTL

For your cached DNS entries, you can check the TTL as follows, as you provably know:

Code:
macos# nslookup
> set debug
> server ns1.linode.com
Default server: ns1.linode.com
Address: 162.159.27.72#53
> www.unix.com
Server:		ns1.linode.com
Address:	162.159.27.72#53

------------
    QUESTIONS:
	www.unix.com, type = A, class = IN
    ANSWERS:
    ->  www.unix.com
	internet address = 209.126.104.117
	ttl = 3600
    AUTHORITY RECORDS:
    ->  unix.com
	nameserver = ns2.linode.com.
	ttl = 3600
    ->  unix.com
	nameserver = ns1.linode.com.
	ttl = 3600
    ->  unix.com
	nameserver = ns3.linode.com.
	ttl = 3600
    ->  unix.com
	nameserver = ns5.linode.com.
	ttl = 3600
    ->  unix.com
	nameserver = ns4.linode.com.
	ttl = 3600
    ADDITIONAL RECORDS:
    ->  ns1.linode.com
	internet address = 162.159.27.72
	ttl = 300
    ->  ns1.linode.com
	has AAAA address 2400:cb00:2049:1::a29f:1a63
	ttl = 300
    ->  ns2.linode.com
	internet address = 162.159.24.39
	ttl = 300
    ->  ns2.linode.com
	has AAAA address 2400:cb00:2049:1::a29f:1827
	ttl = 300
    ->  ns3.linode.com
	internet address = 162.159.25.129
	ttl = 300
    ->  ns3.linode.com
	has AAAA address 2400:cb00:2049:1::a29f:1981
	ttl = 300
    ->  ns4.linode.com
	internet address = 162.159.26.99
	ttl = 300
    ->  ns4.linode.com
	has AAAA address 2400:cb00:2049:1::a29f:1b48
	ttl = 300
    ->  ns5.linode.com
	internet address = 162.159.24.25
	ttl = 300
    ->  ns5.linode.com
	has AAAA address 2400:cb00:2049:1::a29f:1819
	ttl = 300
------------
Name:	www.unix.com
Address: 209.126.104.117


And the query above confirms what is in our DNS setup:

Changing hosting company for one domain, how to deal with DNS?-screen-shot-2020-01-26-34730-pmjpg


As you can see from the next screen capture, I would set this to 5 minutes (300 seconds) if I was going to do a cut-over. I would never do a cutover with 1 hour (3600 second) TTL. This would be a receipt for a small disaster.

Changing hosting company for one domain, how to deal with DNS?-screen-shot-2020-01-26-35004-pmjpg


I suggest you check with a DNS tool (like I did above) to make sure your TTL is what you think it is.

Personally, I would not use any DNS provider which provides a minimum TTL of 1 hour. Actually, for me, that is "unheard of" for 3600 to be "the minimum", as the minimum TTL is normally 300 seconds, like I have demonstrated to you above.
These 2 Users Gave Thanks to Neo For This Post:
# 5  
Old 01-26-2020
Thanks for the detailed reply. I checked the same way on my side and it confirms that TTL is 3600. I will check with Network Solutions, if this can be reduced for/during migration.
Do you have any suggestions regarding Redirect.pizza solution and having a CNAME for root domain and gem? This is not a personal domain/website, but an enterprise so I am more concerned about its stability.
# 6  
Old 01-26-2020
Sorry, I don't have any experience with Redirect.pizza or other services because when I do these kind of migrations, I always set the TTL to 5 minutes and and everything works great, especially when the transition is performed when the traffic is at it's lowest point (weekends, holidays, middle of the night, etc) and, of course, the app is running at both the "old" and "new" IP address during that time as well (in the proper mode, normally read only on the "old" IP address, etc).

I'm quite "old school" so there may be a better way than DNS TTL management; but I have never used any these "new school" methods, sorry I cannot be more helpful.

Like I said, I would never use a DNS provider which did not permit us to change the TTL to 300 seconds. 3600 is not acceptable at all for "non trivial" transitions.
This User Gave Thanks to Neo For This Post:
# 7  
Old 01-29-2020
Thanks. It was detailed and helpful.
Instead of using external redirect services, I will be setting up my own webserver for this setup and hopefully, that would serve the purpose.

Previous Thread | Next Thread
Test Your Knowledge in Computers #900
Difficulty: Medium
KornShell (ksh) is a Unix shell which was developed by David Korn at UC Berkeley.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux is not appending domain name in DNS query

In my /etc/resolv.conf file there is domain name defined. But when I do nslookup the domain name is not appended. Why? (18 Replies)
Discussion started by: broy32000
18 Replies

2. Linux

Domain registrars & DNS servers

I have read many tutorials on bind and i understand the A,MX, CNAME records. Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine. On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies

3. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies

4. IP Networking

changing domain name in /etc

Hi, Im trying to change my domain name in my solaris as below: but it keeps coming back to be "unknown" Im changing /etc/inet/hosts.e1000g0\and also i added one line to /etc/nodename my vm (i have my solaris on VM)ip address is 192.168.1.103 and Im putting solar as a name for it ... (2 Replies)
Discussion started by: messi777
2 Replies

5. UNIX for Advanced & Expert Users

Recommended Domain/Hosting Control Panels?

Looking for a recommendation - I'm looking for a reliable domain control panel (like cPanel) that is open source, and I can customize it do work into my work flow. Essentially, I need new users to be able to create a new account so that a) a new subdomain is created, or b) a full domain... (0 Replies)
Discussion started by: kettlewell
0 Replies

6. Linux

Configuring dns in local domain

Hi everybody, for revolving local host name of my network, I set up an dns server to solve my problem, but til now, nothing happen when I ping a hostname, but work on IP. Can you help me to correct the configuration. Here is all my settings: Voici mes fichiers de configuration: -... (2 Replies)
Discussion started by: beloge2002
2 Replies

7. IP Networking

Select DNS Servers depending on the domain

Hello, I'm using CentOS 5.3, and I connect to a VPN in order to work. The problem is that I'm constantly accessing things on the local network and the remote network. But once I'm connected to the VPN I can't access local addresses by name, I have to use the ip-address. What I'd like is to... (4 Replies)
Discussion started by: martincastell
4 Replies

8. Solaris

change dns (domain name)

hi gurus, need to check other than the hosts file, what else i need to change after we have changed the domain name in our company. currently, we are using olddnsname.com and will change it to newdnsname.com. i am not sure where else in solaris i need to take a look. please advise. thank... (4 Replies)
Discussion started by: kim_custodio
4 Replies

9. UNIX for Dummies Questions & Answers

So, like, I signed on with a new hosting company...

... and there was absolutely nothing installed except fedora and ssh. I used yum to install vsftp and httpd, both start and ps shows they're running, and yet I can't connect with either of them. Where on earth or in redhat do I begin looking to unravel this one? I've overseen a server before but... (3 Replies)
Discussion started by: Bobby
3 Replies

Featured Tech Videos