CyberPanel Community

DNS Propagation of client's domain is not successful

Ed
EdwardC1 #1

I use namesilo to manage my domain name and my client’s domain name; use cyberpanel to manage my server.

I have a question, How to setting up a own dns and then let my client use my ns ? (I usually design and host websites for clients)

According to the online tutorial, I chose a domain name in namesilo to create ns, and directed this domain name to the server ip address managed by cyberpaenl. Then set the default dns in cyberpanel.

But when I had a new customer, I changed his domain name ns to my private ns. I checked with dnschecker and found that ns resolution was not very successful. I don’t know what to do anymore.

Does anyone have a better suggestion or solution? :smiling_face_with_tear:

46 replies
jo
josephgodwinke #2

Welcome @EdwardC1 Happy you are here

DNS propagation (the process of updating domain information on the internet’s Domain Name System servers) take longer depending on Time to Live (amount of time a DNS server caches a DNS record before it needs to be updated) of the DNS record, the record type (NS, CNAME. SPF, TXT, MX, A, AAAA), the DNS cache, and network conditions of your infrastructure or the decentralized system of Domain Name System servers.

DNS propagation takes 24hrs to 48 hours, however for some providers it can take up to 72 hours mainly because of Time to Live of specific domain providers.

Therefore its safe to say if you have a lower Time to Live (factor you can control) then you have shaved propagation time. However, the rest depends on all the aforementioned factors.

A more quicker way is to use cloudflare as your dns manager. Cloudflare DNS | Authoritative and Secondary DNS

Ed
EdwardC1 #3

Thank you for your warm reply. Well, then maybe it takes some time. So my setup process is correct right?

At present, I don’t really want to use cloudflare. If I use cloudflare, do I have to use its CDN?

jo
josephgodwinke #4

Yes its correct if you followed all these steps https://community.cyberpanel.net/docs?category=52&topic=105

Using cloudflare is optional. The service has a free tier that never expires. You will not be forced to use their CDN or any services you do not need or prefer.

Ed
EdwardC1 #5

Well, I don’t remember how it was added at the time. I checked again and felt that there was no problem with the steps. Maybe I can wait for the dns to spread first, if it doesn’t work, I can only think again.

we
webby #6

Try to create an A record in Namesilo and put the IP there. I don’t know if private DNS works well with cyberpanel.

Ed
EdwardC1 #7

That’s what I do, but in fact. It doesn’t work well at present.

Ed
EdwardC1 #8

Do you have a better solution ? For private DNS use

jo
josephgodwinke #9

They work perfectly. He should try it

Ed
EdwardC1 #10

Hi Joseph, my new domain ns still work not well now. only some places’s ns has been changed.

Should I still wait some more time, or try cloudflare + cyberpanel to do the private ns ?

And how to do that, is there any tutorial or video?Thank you in advance.

To be honest, I really want to use private ns instead of manually adding A records :joy:

jo
josephgodwinke #11

Use this tutorial How to use CyberPanel as DNS Only Server!

Ed
EdwardC1 #12

Is the setting of namecheap the same as that of namesilo?

Ed
EdwardC1 #14

I just finished the video, but I’m confused. Maybe I didn’t make my question clear. I want to try to explain once.

I have already install cyberpanel to my vps, and install ssl to my panel already. I also set up my cyberpanel background as a secondary domain name login. They work well.

My question is if I have a domain at namesilo is, for exsample, edwardexcom

I registered the private ns with this domain: ns1.edwardexcom; ns2.edwardexcom
(ps:edwardex.com is the domain I already created website by cyberpanel. And I also use its panel.edwardexcom as the login url)

Now My request is, if I buy a new domain name such as hiedwardcom. And I want to use it to build a website.

I just want to use the private NS I created before, ns1.edwardexcom; ns2.edwardexcom. Once I change the ns of hiedwardcom to them. I don’t need to use A record by manuanlly.

And then I just need creat website by cyber panel for it, that’s it.
Then I install wordpress, and make the website.

Hope my words is clear. :wink:

////Please ignore that I don’t put a dot before the com as I found out that I’m not allowed to post too many links

jo
josephgodwinke #15

Once you complete this process https://community.cyberpanel.net/docs?category=&search=create%20website&topic=92 at this point CyberPanel has already created all the necessary zone records, the next step is to adjust nameservers of your client domain to your private nameservers on their respecitve domain providers. If the client domain is with namesilo you go there and adjust nameservers only.

Ed
EdwardC1 #16

So should I create the website first and then change the client’s domain’s ns to my private ns ?
Or change the ns first and creat the website second.?

Because I tried to change the client domain’s ns to mine first. And the dns don’t work well, I couldn’t get ssl at cyber panel when creat website…

So are my steps in the wrong order?

jo
josephgodwinke #17

Change client domain ns records first.

No there no such thing. At the end of the day the domain dns records should point to your server. If that is not successful nothing else can be done successfully.

Ed
EdwardC1 #18

Thank you. But that’s what I did yesterday. I changed the domain’s ns to my private ns. But the ns check show it still not work. I don’t know which step I did wrong. :sweat_smile:

jo
josephgodwinke #19

How long has it been since you last changed ?

Ed
EdwardC1 #20

More than 24 hours I think. I changed it before I ceate this topic.

jo
josephgodwinke #21

Remember this

Ed
EdwardC1 #22

Okay, I think let me check it next week. Thank you.

Ed
EdwardC1 #23

I checked the DNS propagation of the new domain name and it still doesn’t work. I think it is impossible to do private ns in cyberpanel? Or am I doing something wrong. (has been at least 4days)

Interestingly, the private ns I made is only available in Canada, Switzerland, New Zealand, Turkey, India, and Pakistan, not in other countries.

Ed
EdwardC1 #24

Don’t know why but cyber panel +namesilo to make private ns is not successfully… :smiling_face_with_tear:

jo
josephgodwinke #25

Probably you are NOT doing something right. This I can confirm works without a doubt all the time.

Ed
EdwardC1 #26

Yes, I thought so too, but don’t know which step I did worng. Maybe namesilo don’t support.

Ed
EdwardC1 #27

My step is:
1.register private ns at namesilo for one of my domain, and then use 2 A record(without www and with www) to make website by cyberpanel for this domain.
2.creating private ns at cyebrpanel(same ns I created at namesilo), then setting up default ns by cyberpanel.

3.creating another website of another domain, trying to use the private ns I created, but not worked…
then I use A record also…

Can you help me to check where is worng ?

jo
josephgodwinke #28

There is no issue with namesilo follow this guide step by step How to use CyberPanel as DNS Only Server!.

You may have to start from the beginning - clean os choose Ubuntu 20.04 or AlmaLinux 8.4

Ed
EdwardC1 #29

oh that’s too bad if I must from start again, because I already have 2 website on my server… :smiling_face_with_tear:

And I used centos, becasue I need to use php 5.6. Ubuntu 20.04 or AlmaLinux 8.4 is must ?

jo
josephgodwinke #30

Centos 7 ?

Ed
EdwardC1 #31

Yes, centos 7

Ed
EdwardC1 #33

:rofl: :joy:

Oh my god,I read that also, but I need to use php 5.6 for a special cms.

My friend also suggest me to use Ubuntu 20.04, but it don’t have php 5.6,So I choose centos 7…

jo
josephgodwinke #34

Read this to see how you can add unrecommended EOL php versions on Ubuntu litespeed_wiki:php:apt [LiteSpeed Wiki]

There is nothing you cant do with cyberpanel. You just have to follow the rules

Ed
EdwardC1 #35

Oh it helped a lot, thank you. Then my only option is to backup my website and start from scratch, install Ubuntu 20.04 for my vps, then cyberpanel, then install php5.6 separately.

Ed
EdwardC1 #37

If I set php5.6 as default, will there also other php version when I creating website. I mean sometimes maybe I will need php 7.4 and etc.

jo
josephgodwinke #38

Yes on cyberpanel you can choose from php 7.2 to php 8.2

Ed
EdwardC1 #39

Cool solution

Ed
EdwardC1 #40

Hello, Joseph

I use my another vps to test, the enviroment is Ubuntu 20.04, I install cyber panel, and want to follow the instruction to install php56, but it shows couldn’t find in the package.
image

jo
josephgodwinke #43

Build from source

$ sudo apt-get build-essential pkg-config openssl libssl-dev openssl-blacklist openssl-blacklist-extra  bison autoconf automake libtool re2c flex libxml2-dev libssl-dev libbz2-dev libcurl4-openssl-dev libdb5.1-dev libjpeg-dev libpng12-dev libXpm-dev libfreetype6-dev libt1-dev libgmp3-dev libc-client2007e-dev libldap2-dev libmcrypt-dev libmhash-dev freetds-dev zlib1g-dev libmysqlclient-dev libncurses5-dev libpcre3-dev unixODBC-dev libsqlite0-dev libaspell-dev libreadline6-dev librecode-dev libsnmp-dev libtidy-dev libxslt-dev libt1-dev
$ sudo cd /tmp
$ sudo wget https://www.php.net/distributions/php-5.6.40.tar.gz
$ sudo tar -xf php-5.6.40.tar.gz
$ sudo cd php-5.6.40
$ sudo ./configure  '--prefix=/usr/local/lsws/lsphp56' '--with-libdir=lib64' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--with-curl' '--with-openssl' '--with-gettext' '--with-mcrypt' '--enable-mbstring=all' '--enable-mbregex' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--enable-ftp' '--with-imap=/usr' '--with-imap-ssl' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-pcntl' '--with-freetype-dir=/usr' '--with-pdo-mysql=/usr' '--with-litespeed'
$ sudo make
$ sudo make install

If this is successful set as default OR go to OLS/LS and setup php https://YOUR_SERVER_IP:7080 as this will not be detected on your cyberpanel frontend

jo
josephgodwinke #45

Try making ./configure executable by running chmod +x configure inside /tmp/php-5.6.40

EJ
Ernest Junuzovic #46

Greetings,
I have open a topic today regarding the same issue.

I have been using Cyberpanel for the last few months so I am still learning, and mostly I have default settings. I only set up things that where importatnt for security reasons.
I have set up 3 domains on my Cyberpanel without any problem and they are public and I have been using them, but in the last week i try to set up 2 more domains and I having problems with nameservers and I also get resonse from server “Failed to obtain SSL, issuing self-signed SSL for:”
I think I have set up everything right but why the DNS and nameservers won’t propagate I have no Idea. I did everything I did on the other 3 domains.

One of two domain i have setup nameserver more than 15 days and still the ns did not propagate. The other i have setup yesterday.

Also yesterday I have updated my Cyberpanel to the latest version.

Is there anything else I can try to force things? Will it help if I delete the website and set it up again?

Cyberpanel is running on Contabo server, Ubuntu 20.04

If you have any more questions feel free to ask.

Thank you in advanced

VC
Veli Can #47

I am writing to offer a definitive solution to this issue.

Although there is no problem in the main domain, problems may occur in domains added later.
It can be seen in both TLD or ccTLD domains.
When you search on dnscheckerorg and similar pages, the A Record and NS record are not propagated in all servers.

If we consider the problem in this table. While the main domain is fully propagated, the subsequent TLD and ccTLD domains are not propagated.

In this case, the solution is as follows:

  • Connect to your server’s SSH panel as root.
  • Open the file with the nano /etc/dhcp/dhclient.conf command.
  • Find this line prepend domain-name-servers .
  • prepend domain-name-servers 8.8.8.8,8.8.4.4; replace it with this line.

I gave an example for the Ubuntu system. What we did was to add the Google DNS addresses to the DHCP records of our Linux system.
I am noting it here because I have found a solution to this problem at least 5-6 times.
Best regards CyberPanel Family…

Sign in to reply