domain with www showing another website - iframe

I'm having a weird problem, my domain is aridod.com which is working fine but if i add www before aridod.com I mean www.aridod.com that takes me to domainnamesales.com which is completely weird. I don't know how it happens. My source files fairly simple html. I looked into the browser source i saw iframe is injected anyway. And it is not anyway happening from source files & here is my dns settings :
Any help would be greatly appreciated.

I'm not sure what you are doing, but if I run a few linux commands I see what I think is a glaring problem that many people encounter:
$ nslookup aridod.com
Address: 184.107.37.81
You seem to be including the name of the provider (not your site), see below:
$ nslookup 198.54.114.243 | grep name
243.114.54.198.in-addr.arpa name = premium37-1.web-hosting.com.
114.54.198.in-addr.arpa nameserver = nn101.namecheaphosting.com.
114.54.198.in-addr.arpa nameserver = nn1.namecheaphosting.com.
nn1.namecheaphosting.com internet address = 199.188.205.137
This is not what you would want, I would think. You should be including the address site 184.107.37.81 not 198.54.114.243.

The domainnamesales.com and www.aridod.com point to the same Ip address in you DNS. So the browser misleading you.
You can check the DNS of the domians by ping domainnamesales.com and ping www.aridod.com. You may get same Ip address, You can check the file /etc/hosts first. There may be settings of www.aridod.comor domainnamesales.com, remove it

Related

VestaCP - All domains point to the same website. Why?

I have a bit of a problem. I setup several new domains on VestaCP, but they all point to the same default website. Part of the problem I guess is that all DNS records point to the same IP, but Vesta doesn't seem to know which website to take you to, so it takes you to a default website.
However, this problem only happens with HTTP, HTTPS forwards to the correct website. I don't know why. Is there a .conf somewhere that needs to be edited, or am I doing something wrong in VestaCP?
My setup is running on Digital Ocean -- Ubuntu 18.04, Nginx + php-fpm
Your help appreciated.
Chceck if all DNS goes to IP of server with VestaCP. If yes, try look into /home/yourloginname/web Is there every your website? If yes, try to look to aliases. If you have subdomains, maybe head domain have alias *.domain.com .
And if your answer was no for some of questions above, try look into /etc/bind/named.conf where should have every domain 1 row for example:
zone "domain.eu" {type master; file "/home/admin/conf/dns/domain.eu.db";};
If not, add this one. Hope will be helpful.

MAMP could not lookup up localhost. Website unavailable

A weird error appeared that all of a sudden http://localhost:8888/... is not available. A day ago it worked perfectly fine and now I get this error although I have not installed any software, nor updated MAMP nor updated my Operating System. I have been researching all day of what could be the problem and found several answers which solved other people's problem but sadly not mine. The question is: How can I get my localhost working again?
Once I enter the IP (http://127.0.0.1:8888) the website loads, however, all my links use http://localhost:8888, which means I would have to change all the links to use the IP. There are scripts that do so, but I really want to understand the background and find the root of this problem. I have tried several things:
Changing the Apache ports to another number which can be done under MAMP Preferences. I get the same error no matter which port I change it to.
Editing my etc/hosts file in order to link 127.0.0.1 to localhost, which I really did not have to do since the code was already there. After I have done this, I opened my terminal and entered sudo killall -HUP mDNSResponder in order to flush the DNS Cache. Afterwards, I restarted my computer and annoyingly the error keeps appearing. Somehow, localhost is not linked to 127.0.0.1, which I think is comparable to when the domain name of a website is not connected to the server IP which can be configured with the Nameservers. This brings me to my third point and last point.
I looked deeper into the location and opened the "httpd.conf" file found under the path "etc/apache2/httpd.conf" where I can configure the Apache HTTP Server. I searched for any ServerName and the only code that appears is some comments describing it. This includes #ServerName www.example.com:80 and a short description before. I've tried adding a new ServerName as ServerName localhost:8888 and even simply ServerName localhost, still nothing happens.
I've tried other obvious things which are not worthy mentioning for. This seems to me either something really complex to which my knowledge does not reach or something very silly I missed out.
For the record, the etc/hosts file contains some weird addresses:
##\n# Host Database\n#\n# localhost is used to configure the loopback interface\n# when the system is booting. Do not change this entry.\n##\n127.0.0.1 localhost\n255.255.255.255 broadcasthost\n::1 localhost \nfe80::1%lo0 localhost\n\n##SYS##\n127.0.0.1 inst.shoppingate.info\n127.0.0.1 service.shoppingate.info\n127.0.0.1 indexx.org\n127.0.0.1 f.flshbsjs.info\n127.0.0.1 gsy.testersgroupfun.com\n127.0.0.1 sendmessagebox.com\n127.0.0.1 t1.inskinad.com\n127.0.0.1 q.crbfmcjs.info\n127.0.0.1 static.donation-tools.org\n127.0.0.1 istatic.datafastguru.info\n127.0.0.1 static.boostsaves.com\n127.0.0.1 www.best-deals-products.com\n127.0.0.1 fge.solartrendinc.com\n127.0.0.1 nps.pastaleads.com\n127.0.0.1 digitaloptout.com\n127.0.0.1 cdncache-a.akamaihd.net\n127.0.0.1 cdncache1-a.akamaihd.net\n127.0.0.1 rvzr-a.akamaihd.net\n127.0.0.1 rvzr2-a.akamaihd.net\n127.0.0.1 asrv-a.akamaihd.net\n127.0.0.1 cdn.visadd.com\n127.0.0.1 a.visadd.com\n127.0.0.1 ydt.winsurfingclub.com\n127.0.0.1 client.foxydeal.com\n127.0.0.1 s.hklmm.com\n127.0.0.1 i.crbsjs.info\n127.0.0.1 wwm.determineyourroad.com\n127.0.0.1 ext1.engageya.com\n127.0.0.1 ext2.engageya.com\n127.0.0.1 a.tfxiq.com\n127.0.0.1 cdn.staticwebdom.com\n127.0.0.1 api.jollywallet.com\n127.0.0.1 i_crbsjs_info.tlscdn.com\n127.0.0.1 i_flshbsjs_info.tlscdn.com\n127.0.0.1 ppj.qwikbookprint.com\n127.0.0.1 homedesigntreasure.com\n127.0.0.1 www.superfish.com\n127.0.0.1 istatic.eshopcomp.com\n64.251.22.253 shmactustus.com\n64.251.22.253 www.google-analytics.com\n##SYS##
I also tried deleting all the remaining addresses leaving only:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
But, after I restart my computer, all the old addresses I previously deleted appear again and the error is still the same. The thing is, this happened all of a sudden overnight and I did not expect this to occur. Does anybody know what is going on? I am open to any suggestions and appreciate your help. Best Regards!!

How do I access my servlet?

My problem is, that I can not access my Servlet outside from my computer.
So. f.e. if I go to http://127.0.0.1:8080/TestProject/test/, it shows me my site. In my case there is some JSON- Code.
But if I want to access this Site from a computer that is remote, it doesn't work. So, again, f.e. if I go to http://192.168.1.100:8080/TestProject/test/ (thats the IP from the computer where the WildFly- Server is started), it shows me nothing.
What could be the problem?
Problem solved! You have to start the WildFly- Server like that:
standalone.sh -b 0.0.0.0

Apache domainname instead of IP

I'm not sure this is even a question to be asked here, but I'll give it a shot anyway.
So I have an ubuntu server, and I recently purchased a domainname.
Now I have forwarded the domain to my IP, but whenever I reach the server, the browser shows the IP adress instead of the domain.
Is this something I should configure in Apache, or from godday (where I got the domainname)
Thanks in advance :)
Start with checking your setup at Godaddy. What you probably need is an A entry.
The good news is that your setup seems to work since you get an answer from you server!
Perhaps this can help
http://support.godaddy.com/help/article/680/managing-dns-for-your-domain-names

How to Check IP Address of Subdomain

I'm sending XML from a client's site to an external server. This external server admin needs to verify the IP from the sender. We have the script working fine when sending from the main site (domain.com), but I am not sure when we are sending from a subdomain of the main site (sub.domain.com, getting an error currently). Is there a way to check the IP of a subdomain so I can give the admin the right IP address?
Thanks.
UPDATE: I've used the firefox extension 'IP Addresses and Domain Information' and am comparing the info from both domain.com and sub.domain.com and both look pretty much identical.
You should be able to just use nslookup from a terminal
nslookup google.com
nslookup mail.google.com
From here it's trivial to write a script for this. Here is a simple ruby example:
nslookup.rb
#!/usr/bin/env ruby
domain = ARGV[0]
lookup = `nslookup #{domain}`.split("\n")
lines = lookup.select{ |line| line[/Address/] }[1..-1]
ips = lines.map{ |l| l.split('Address: ').last }
verb = ips.count > 1 ? 'are' : 'is'
puts "the IP addresses for #{domain} #{verb}:\n#{ips.join("\n")}"
Run from command line
ruby nslookup.rb api.stackoverflow.com
# or just
./nslookup.rb api.stackoverflow.com
should output something like
the IP addresses for stackoverflow.com are:
151.101.193.69
151.101.65.69
151.101.1.69
151.101.129.69
I was also search on this topic then i have found a web site that helps me to find my subdomains IP address http://www.hcidata.info/host2ip.htm

Resources