Programmatically force to use Google DNS for my site - dns

How can I make so when a user goes to my website, they should not use their local ISP DNS to resolve my website IP, rather they should use Google DNS i.e 8.8.8.8
How can I configure this on my web server?

I'm not sure if I misunderstand but how would someone get to your site in the first place without using their current DNS? You can't change someones DNS they can only change it themselves.

Related

Setting Up new domain for WHM, ERR_NAME_NOT_RESOLVED

I got WHM on our VPS and already set up some websites in it.
Usually, I only need to create new Account, fill out the form (domain name, setting, etc).
Then change the nameserver on the registrar's website, then wait for max 48 hours.
Then the website is live.
But now the website is not live yet. I have been contacting the hosting support, but they do not respond quick.
Could you guys please let me know what should I check to identify the problem?
Thank you!
First of all you have to check if you WHM hostname is a valid hostname and then if the hostname points back to the WHM server ip. Then you have to check with a tool like intodns.com if you DNS zone for the domain is correct and if the domain name points back to your server's ip. If you can, please post your domain name (the one that is supposed to load from your WHM server).

DNS set up by using yahoo small business

I'm trying to deploy my website and bind dns to this website. So, the dns was used by the old website and now I need to access the dns setting page and modify its A Record and pair its domain name to its new ip address. The domain name is managed by yahoo small business. So I log in and done the changeup like this.
however, When I type the "vbridgetech.com" it does show the apache default page. But when I type "www.vbridgetech.com" it still goes to the old webpage. I thought the only thing I have to do is to change the old ip to new ip. Anyone has idea about it?
If 59.120.185.12 is you new site's IP address, then just add another CNAME record:
CNAME record www.vbridgetech.com vbridgetech.com
(There are other ways to do this, but this should be the safe one)

How to find actual hosting provider for website that are connected to cloudflare.com

I am trying to find hosting provider for a website that is connected to cloudflare. On Whois Lookup, I get Name Server(s) NOAH.NS.CLOUDFLARE.COM
UMA.NS.CLOUDFLARE.COM
When I use this website http://network-tools.com
I get Attempt to get a DNS server for 104.XX.1xx.3x failed:
I know that cloudflare is not a hosting provider. How can I dig deep and find the actual hosting provider?
If you have some type of abuse related issue with the website in question you'll need to file a complete abuse report at cloudflare.com/abuse
In most cases there isn't an obvious way to identify the underlying hosting provider for a website behind CloudFlare. With a valid and complete abuse report they can put you in touch with the hosting provider's abuse team though.
There is a service called CrimeFlare that helps to resolve the actual IP address behind CloudFlare.
If the website owner has properly set up their website's configuration with CloudFlare. There is no way to acquire the IP through any external means (Whois, DNS, etc)
If you must send an abuse report or DMCA complaint, you can contact CloudFlare through their website and they will be able to forward it on for you.
1. Check hosting history
Services like https://toolbar.netcraft.com/site_report can help you discover the history of hostings for the website.
2. Try Cloudflare IP resolver
https://iphostinfo.com/cloudflare/ (Works as of 2019.12.10, not sure if you can trust this source in a long-term).
Enter your domain name. Click "Search DNS" and you will be
brought to a page that checks for common DNS entries. This tool was
created to help webmasters configure their domains DNS with CloudFlare
properly and is not meant to be used for abuse purposes. If you see
your servers real ip in any DNS entry, anyone can easily find your
real servers ip then.
3. Look for subdomains manualy
You can check and WHOIS the IPs for subdomains. E.g. if www.XYZ.com and XYZ.com are both behind CloudFlare, check for popular subdomains, like:
status.XYZ.com
ns.XYZ.com
beta.XYZ.com
test.XYZ.com
forum.XYZ.com
blog.XYZ.com
admin.XYZ.com
etc..
There is some chance that they will be available directly without CloudFlare.
4. Ask
You can find a way to ask them directly. Or get such information via CloudFlare if you have a legit need to know it. (E.g. by contacting cloudflare.com/abuse as suggested by #xxdesmus).
Law enforcement officials can contact us directly at abuse+law#cloudflare.com. You must include your badge & case number when contacting us to receive a response.

Can I use different DNS server depending on website I'm going to visit?

I've been working in an company where there is an DNS server which could resolve our company network's address. But problems comes when I wanna use Google because it's blocked in China.
I have VPN to solve this problem but it's too slow.So I choose to use another DNS server and it works.
But if I use that DNS server,I could not visit my company's website. If I use my company's DNS server, I could not visit Google.
Is there any way that I could have my computer use company's DNS server while visiting company's website and use the other DNS server while visiting google,twitter,etc?
Note that IP addresses is always changing,so hosts doesn't work.
I would recommend dnsmasq, where you can this configuration using the parameter --server:
--server=/google.com/1.2.3.4: this will send all *.google.com queries to server 1.2.3.4

Domain forwarding (sort-of)

I have been attempting to set up magento on a shared hosting server that doesn't support innoDB, ergo its not been possible. The domain I want to use has also been registered with this rubbish hosting provider. (one[dot]com for anyones reference). So I thought I would be able to point this domain to a different hosting provider that DOES support it, but one[dot]com doesnt allow me to change nameservers for the domain. They just said this:
You can only setup IP address, CNAME and web forwarding in our DNS settings but not change of nameservers
Would there be any way to change any of these settings or the .htaccess file so that, for example
http://www.mydomain.com/folder/page.php?query=string
Would display a page from the other server
http://xxx.xxx.xxx:xx/folder/page.php?query=string
I've created loads of sits doing all sorts but never really needed to other with the domain administration side of things.
You don't need to change name servers to map a domain to a different server. If the "good" provider supports it (i.e. allows you to register a domain on the server that isn't hosted by the company), just switch the A and MX records to the new server's IP address.
You do need the cooperation of the "good" provider for this, though.
If they're letting you set up the IP address, then setting the IP address of www.mydomain.com to xxx.xxx.xxx.xx should do the trick. On the other server, you'll need its webserver to be set up to serve www.mydomain.com as a virtual domain - if you're using a hosting provider they should do this for you; if not it should be fairly easy to set up (consult the manual of whichever web server software you're using).

Resources