odd dns behavior

Hi. I’m on opensuse 12.3 64-bit, KDE. I have a very odd behavior-thing going on. In particular, when I try to go to my bank’s web site in firefox, my browser ends up pointing at a website that I’ve got running locally (using apache2). Further, when I ping the bank’s site, I get pings back from. 127.0.0.1. It’s just this one site (the bank’s) that I see this behavior with. If I ping it using su I also get pings back from 127.0.0.1. I looked in /etc/hosts, but it looks OK to me:

#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1    localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts


So, where else should I be looking? As I said, it’s just this one site… Thanks!

When do you get the problem with the bank website?
Is that with the request of the welcome page or after trying the login?

When I type the url into firefox. It seems that if I google the bank, and follow the link from google, I can do my banking OK.

Please when you say: “when I ping the banksite …” we always want to see the computerfacts that let you make this conclusion. Thenn we can see what you did and maybe draw our own conclusions. Because when yyou ask for helpo, you in fact ask for the conclusion of others.

Can you also show a DNS lookup of your bank:

nslookup your.bank.host.domain

Because that seems to me the first test to test DNS.

Sure thing:

john@linux-f2k5:~> nslookup www.barclaycardsus.com
Server:         10.0.5.1
Address:        10.0.5.1#53

Non-authoritative answer:
Name:   www.barclaycardsus.com
Address: 127.0.0.1

For comparison:

john@linux-f2k5:~> nslookup www.opensuse.com
Server:         10.0.5.1
Address:        10.0.5.1#53

Non-authoritative answer:
Name:   www.opensuse.com
Address: 130.57.5.70


And what’s the output of:

hostname -f

?

john@linux-f2k5:~> hostname -f
hostname: Name or service not known

Same as su:

linux-f2k5:/home/john # hostname -f
hostname: Name or service not known

Hm, I can reproduce your problem here:

wolfi@amiga:~> nslookup www.barclaycardsus.com
Server:         10.0.0.138
Address:        10.0.0.138#53


Non-authoritative answer:
Name:   www.barclaycardsus.com
Address: 127.0.0.1

And typing in the URL in a webbrowser gives me the page of the locally running apache (or a connection error if I stop my apache)

Strange…

And if I use Google’s DNS server:

wolfi@amiga:~> nslookup www.barclaycardsus.com 8.8.8.8
Server:         8.8.8.8
Address:        8.8.8.8#53


Non-authoritative answer:
Name:   www.barclaycardsus.com
Address: 127.0.0.1



So this seems to be a global problem…

Very strange!

Another try would be to use another DNS server. you now use 10.0.5.1 (your router?). That must be in a lline in /etc/resolv.conf:

nameserver 10.0.5.1

There may also be other nameserver lines. Put a # before all of those lines and add anew line:

nameserver 8.8.8.8

and then try again to lookup your bank.

Duh! It’s always nice to know that I’m still able to embarrass myself in front of a bunch of people. I was typing the incorrect url (you saw that coming, right?) Here is the correct url:

john@linux-f2k5:~> nslookup www.barclaycardus.com
Server:         10.0.5.1
Address:        10.0.5.1#53

Non-authoritative answer:
Name:   www.barclaycardus.com
Address: 192.107.16.41

And yes, it works in the browser. I guess the only really confusing thing is why is an incorrect url pointing back to my localhost, but I guess that’s a name server thing?

First, I didn’t see wolfi323’s test before I posted. I get the same, thus my last advice is useless :frowning:

And indeed, it is very strange that your typo creates this.

henk@boven:~> nslookup
> set debug
> www.barclaycardsus.com
Server:         194.109.6.66
Address:        194.109.6.66#53

------------
    QUESTIONS:
        www.barclaycardsus.com, type = A, class = IN
    ANSWERS:
    ->  www.barclaycardsus.com
        internet address = 127.0.0.1
        ttl = 1800
    AUTHORITY RECORDS:
    ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name:   www.barclaycardsus.com
Address: 127.0.0.1

My conclusion is that this name realy resolves to 127.0.0.1 because it is as such in the barclaycardsus.com DNS server. But I have no idea why one would do so. I experimented a bit with deviations at the end of barclaycardsus. barclaycard, barclaycards and even barclaycardsu do return usefull addresses. I guess they used a sort of gapstopper for thi variation. :frowning:

Yes. There is a DNS entry for www.barclaycardsus.com which points to 127.0.0.1, so it’s not an incorrect URL. But why I don’t know…

On 07/08/2013 02:06 PM, hcvv wrote:
>
> Code:
> --------------------
> henk@boven:~> nslookup
> > set debug
> > www.barclaycardsus.com
> Server: 194.109.6.66
> Address: 194.109.6.66#53
>
> ------------
> QUESTIONS:
> www.barclaycardsus.com, type = A, class = IN
> ANSWERS:
> → www.barclaycardsus.com
> internet address = 127.0.0.1
> ttl = 1800
> AUTHORITY RECORDS:
> ADDITIONAL RECORDS:
> ------------
> Non-authoritative answer:
> Name: www.barclaycardsus.com
> Address: 127.0.0.1
>
> --------------------
>
> My conclusion is that this name realy resolves to 127.0.0.1 because it
> is as such in the barclaycardsus.com DNS server. But I have no idea why
> one would do so. I experimented a bit with deviations at the end of
> barclaycardsus. barclaycard, barclaycards and even barclaycardsu do
> return usefull addresses. I guess they used a sort of gapstopper for thi
> variation. :frowning:

If you try “whois” on the name with the typo, you get:

finger@larrylap:~/openwrt-realtek> whois barclaycardsus.com

Whois Server Version 2.0

Domain Name: BARCLAYCARDSUS.COM
Registrar: FABULOUS.COM PTY LTD.
Whois Server: whois.fabulous.com
Referral URL: http://www.fabulous.com
Name Server: NS1.DNSLINK.COM
Name Server: NS2.DNSLINK.COM
Status: clientTransferProhibited
Status: clientUpdateProhibited
Updated Date: 29-jun-2013
Creation Date: 13-jul-2006
Expiration Date: 13-jul-2014

Registrant contact:
Quantec, LLC/Novo Point, LLC
400 No. Saint Paul St. Suite 1040
Dallas, TX 75201 US

For the correct one:

finger@larrylap:~/openwrt-realtek> whois barclaycardus.com

Whois Server Version 2.0

Domain Name: BARCLAYCARDUS.COM
Registrar: MARKMONITOR INC.
Whois Server: whois.markmonitor.com
Referral URL: http://www.markmonitor.com
Name Server: NS1.BARCLAYCARDUS.COM
Name Server: NS2.BARCLAYCARDUS.COM
Status: clientDeleteProhibited
Status: clientTransferProhibited
Status: clientUpdateProhibited
Updated Date: 11-jul-2012
Creation Date: 12-aug-2005
Expiration Date: 12-aug-2014

Registrant:
Domain Administrator
Barclays Bank Delaware
125 S. West St.
Wilmington DE 19801
US
domainregistration@barclaycardus.com +1.3022558299 Fax:

The two domain names have nothing in common. The OP is just lucky that that typo
did not lead to a man-in-the-middle forwarding page that captured your account
name and password. One cannot be too careful when entering the domain name of a
financial institution.

On 07/08/2013 09:36 PM, Larry Finger wrote:
> The OP is just lucky that that typo did not lead to a
> man-in-the-middle forwarding page that captured your account name and
> password. One cannot be too careful when entering the domain name of
> a financial institution.

my guess is some thief bought the domain name “barclaycardsus”
exactly for the purpose of harvesting card numbers and
credentials…and, when Barclays learned of the scam they had the DNS
munged, somehow…

to the OP ‘JJMT’
unless you are 100% certain that you never typed your password/etc
into that “barclaycardsus” domain, i’d suggest you consider your
Barclays account as possibly compromised…and ask Barclays how they
would suggest you proceed (personally, i would immediately change my
account password and request Barclays to cancel the card and issue a
new one.)


dd
http://tinyurl.com/DD-Caveat

If instead of using DNS tools to address the problem, thus making it
look like a DNS problem, we use our old friend Google, we easily see …

http://www.wipo.int/amc/en/domains/search/text.jsp?case=D2012-2083

… that this is not a technical problem but a legal one.

> not a technical problem but a legal one.

cool!


dd

[QUOTE=djh-novell;2570471
… that this is not a technical problem but a legal one.[/QUOTE]
I doubt the verdict was to configure 127.0.0.1 for the hosts in that domain rotfl!

On 07/09/2013 04:26 PM, hcvv wrote:
> I doubt the verdict was to configure 127.0.0.1 for the hosts in that
>domain rotfl!

no i agree, but it might be the easiest injunction they could put in
place to prevent the interloper from profiting through ‘stealing
away’ customers who typo the “Confusingly Similar” domain…


dd