[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  DNS vs IP

DNS vs IP

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  3  

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Mon 20 Jun 2005 02:15 AM (UTC)

Amended on Mon 20 Jun 2005 02:25 AM (UTC) by Zeno

Message
Okay I have noresolve on (so DNS names are used instead of IPs) but what would cause the MUD to still show an IP over a DNS name? This player somehow had one character on with his IP and another with his DNS thus multiplaying without our multiplay alarm going off. (Since it was strcmp the IP and DNS and not matching) It seems like the player forced the MUD to resolve it to an IP.

Here's what happened: (IPs & names changed from original)
Quote:
Comm: Alt@pcp02934895pcs.planfd01.in.comcast.net has connected.
Comm: Main@203.240.225.27 has connected.


Both are the same IP. (Sock.sinaddr showed it)

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #1 on Mon 20 Jun 2005 03:14 AM (UTC)
Message
203.240.225.27 is an IP in South Korea. pcp02934895pcs.planfd01.in.comcast.net does not resolve to anything. Repeated attempts show it as a host not found. So it's not possible, at least from where I sit, to tie the 2 together.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #2 on Mon 20 Jun 2005 03:44 AM (UTC)
Message
Er, as I said the IPs and DNS names were changed. When "Comm: Sock.sinaddr: <IP>, port 1809." came up, both those characters logged on from as we compare the port to the users list when signed on.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dralnu   USA  (277 posts)  [Biography] bio
Date Reply #3 on Mon 20 Jun 2005 01:54 PM (UTC)
Message
if Sock.sinaddr can read both the IP, couldn't there be a way to tie your alarm into it somehow?
On another note, maybe you could add in somewhere that someone logging via IP will get a refused connection, though I'm not sure what all kinda of problems that could cause besides maybe restricting new players.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #4 on Mon 20 Jun 2005 02:01 PM (UTC)
Message
Wait a minute. Isn't the IP the default, and the resolve causes a DNS name to show?

When you receive a connection, the IP is what you know & have. The hostname is what you get from a DNS lookup.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Dralnu   USA  (277 posts)  [Biography] bio
Date Reply #5 on Mon 20 Jun 2005 02:16 PM (UTC)
Message
I think he changed the code to read DNS instead of IPs because of the apparently large number of IP proxies there are out to keep people from running one and logging all the people at once they want to
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #6 on Mon 20 Jun 2005 03:24 PM (UTC)
Message
Quote:
if Sock.sinaddr can read both the IP, couldn't there be a way to tie your alarm into it somehow?

That was my first version of my multiplay alarm, but it doesn't tell the characters since no character is on yet.

Quote:
Wait a minute. Isn't the IP the default, and the resolve causes a DNS name to show?

Correct. Did I say something wrong?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #7 on Mon 20 Jun 2005 07:07 PM (UTC)
Message
Well, you seemed to imply that by turning on noresolve, you never see the IP address and only use the hostname. That doesn't make a lot of sense to me; I'd have figured that it'd give the opposite i.e. IP address but no hostname.

In any case, the reason some people's hostnames won't show up would be if the DNS lookup fails for some reason. There are plenty of reasons why that could be: it could be a timeout, maybe the person really has no hostname handed out by the IP, the IP is spoofed and the spoofed IP has no hostname associated with it, etc.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #8 on Mon 20 Jun 2005 10:47 PM (UTC)
Message
Well then ignore my comment about noresolve since I probably had what I meant backwards.

Basically, Alt always had the DNS and Main always had the IP. It didn't seem like a simple lookup error because it happened everytime and yet the IP resolves to the DNS.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #9 on Tue 21 Jun 2005 03:21 AM (UTC)
Message
Actually, I don't understand why you're even getting hostnames in the first place if you have DNS resolving turned off.

In any case, does the hostname you get resolve to the IP address?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #10 on Tue 21 Jun 2005 03:24 AM (UTC)
Message
I didn't turn it off, I simply meant that I typed "noresolve" for the first time and DNS names were being shown.

Well Sock.sinaddr and the port matched the DNS, so yes.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #11 on Tue 21 Jun 2005 03:32 AM (UTC)
Message
What exactly do you mean when you say that sock.sinaddr and port matched the hostname?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #12 on Tue 21 Jun 2005 03:36 AM (UTC)
Message
Well when someone connects it displays this:
Comm: Sock.sinaddr: <IP>, port 1809.

So after the person connected with a DNS, I checked users, and their port was 1809, so their DNS was that IP right?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #13 on Tue 21 Jun 2005 03:49 AM (UTC)
Message
First off an issue of vocabulary; they're hostnames, not DNSs; a DNS is a domain name server, it's the computer that holds the mappings of IPs to domain names (hostnames).

I'm a little surprised that two connections would have the same port. Normally, if two have the same port, it means that it's literally the same connection, not two connections from the same source.

When you say 'check users' you mean typing in the users command, right? And you saw two distinct lines with the same port, but one with an IP and the other with a hostname?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #14 on Tue 21 Jun 2005 03:51 AM (UTC)
Message
Yeah, I know I have an issue with explaining in exact words or even the right words. Thanks.

I meant that as I saw Sock.sinaddr with the IP, I waited until the next player signed on and compared ports via the users command. That way I knew the IP.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


69,957 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]