Server Linux DNS - linux

I don't how dns works. Please explain if some knows. Thanks.

Here is a good description --> link

There is a difference between DNS-server that serves request for your domains and caching DNS-server, which collects global DNS-records.

Related

I want to know how to block traffic to my sub domains

My domain is example.co.uk and my sub domain is app.example.co.uk
I would like to know. How can I block all the traffic to my sub domain except from India & UK.
Whether it can be done by cloudflare firewall rules or workers?
If not. Then how can i block ?
help me out this.
Thanks in advance.
You can see the example here
https://developers.cloudflare.com/firewall/known-issues-and-faq#how-do-i-create-an-exception-to-exclude-certain-requests-from-being-blocked-or-challenged
In your case, the following rule may work
I suggest you review the geo blocking technology. it works based on the user's location but it can be circumvented with vpn.

cpanel: solve ERR_NAME_NOT_RESOLVED

I'm using cpanel the first time and I got the following error: ERR_NAME_NOT_RESOLVED.
Is here someone, who can help me to fix that issue? Here you can find the complete log of errors: https://intodns.com/kickbox.org
Thanks in advance!
Can you Please Brief About it...
Have you taken a Shared Hosting Plan or you have taken a VPS or a Decicated Server...
As if you have taken a shared Hosting Plan then Owner use to Provide their Name Servers to setup in your Domain.
And in case of VPS/Dedicated Server, you have to create it via WHM > Basic Configuration and you also need to create Child Name Server in Domain control with the IP of your VPS/Dedicated Server...
Hope this will Help you..

How Do I Get DNS Server IP Address In NodeJS

I'm working on a project and stuck in the DNS Leak Tool, where I would have to perform the same task as http://dnsleak.com/ these website doing, is there any logic, where I can get fetch DNS server IP?
Really appreciate if you guys can help!
Regards,
Finn
I think you just have to do something like this :
const dns = require('dns');
dns.getServers();
See documentation for more information.
Hope it helps.

is it a bad idea to put testing environment and jira as subdomain to the main website domain?

Say I have a website http://mydomain.com. I'm setting up Jira and testing environment which are on the different server and IP address than the main website. Is it a bad idea to set them up as subdomains: testenv.mydomain.com and jira.mydomain.com?
I have seen this setting on many occasions and use it myself. I do not consider it a bad idea, on the contrary.

Can we know that the visit is from the file such as /etc/hosts

when i visit the github.com,and then get a tip like that:
You have a stale /etc/hosts entry for GitHub.com. Please remove that
entry ASAP!
And it confused me, as you can see below:
Can we get the visit source come form the hosts file and how it works?
If the answer is NO, i guess that the github.com know it because of the request ip is old, and then the website display the tip.
Sure the /etc/hosts file had been edited. I am in the CHINA, you know.
And thanks to look at this question.
No, the only relevant information the website gets is the IP address to which you've connected, and the Host: HTTP header saying what domain you are trying to access.
As you say, GitHub is presumably just detecting that you are accessing the wrong IP address, and assuming that you can't be using their real DNS records.

Resources