Author Topic: Ignorant question on websites and IP addresses  (Read 2119 times)

Angel Eyes

  • Lying dog-faced pony soldier
  • friend
  • Senior Member
  • ***
  • Posts: 12,554
  • You're not diggin'
Ignorant question on websites and IP addresses
« on: December 30, 2008, 03:07:08 PM »

Question for those who know more than I about websites and IP (i.e., just about everyone):

If I want to get the IP address of, say, www.example.com, how would I go about doing that?  Would the site necessarily have the same IP address all the time?  Thanks.

""If you elect me, your taxes are going to be raised, not cut."
                         - master strategist Joe Biden

Nick1911

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,492
Re: Ignorant question on websites and IP addresses
« Reply #1 on: December 30, 2008, 03:15:31 PM »
Question for those who know more than I about websites and IP (i.e., just about everyone):

If I want to get the IP address of, say, www.example.com, how would I go about doing that?


Several ways to do that.  Typically, I open a command prompt (Start -> run, "cmd", enter) then type "Ping www.armedpolitesociety.com"  It will reveal the IP that your computer thinks the site is at, and the connectivity status.

Would the site necessarily have the same IP address all the time?  Thanks.

It doesn't have to, but most rarely change.

BrokenPaw

  • friends
  • Senior Member
  • ***
  • Posts: 1,674
  • Sedit qvi timvit ne non svccederet.
    • ShadowGrove Interpath Ministry
Re: Ignorant question on websites and IP addresses
« Reply #2 on: December 30, 2008, 03:24:30 PM »
Several ways to do that.  Typically, I open a command prompt (Start -> run, "cmd", enter) then type "Ping www.armedpolitesociety.com"  It will reveal the IP that your computer thinks the site is at, and the connectivity status.

This is probably the simplest way of doing it on a windows machine.

It doesn't have to, but most rarely change.

This is not as necessarily true.  Sites that get a lot of traffic (major portal sites like yahoo, for instance) will generally have their web services provided by several servers.  One way to balance load across multiple servers like this is called "round robin DNS", where a domain name server will, when asked for the address of "www.example.com", return the address for www1.example.com the first time, and www2.example.com the next, and so forth.

This is not a particularly good way to do load balancing, but it does exist in the wild, and you cannot rely on a given request for a site's address always being the same.  They'll almost always be within a small block of IP addresses, but there are no guarantees there, either.

-BP
Seek out wisdom in books, rare manuscripts, and cryptic poems if you will, but seek it also in simple stones and fragile herbs and in the cries of wild birds. Listen to the song of the wind and the roar of water if you would discover magic, for it is here that the old secrets are still preserved.

Nick1911

  • Administrator
  • Senior Member
  • *****
  • Posts: 8,492
Re: Ignorant question on websites and IP addresses
« Reply #3 on: December 30, 2008, 03:44:17 PM »

This is not as necessarily true.  Sites that get a lot of traffic (major portal sites like yahoo, for instance) will generally have their web services provided by several servers.  One way to balance load across multiple servers like this is called "round robin DNS", where a domain name server will, when asked for the address of "www.example.com", return the address for www1.example.com the first time, and www2.example.com the next, and so forth.

This is not a particularly good way to do load balancing, but it does exist in the wild, and you cannot rely on a given request for a site's address always being the same.  They'll almost always be within a small block of IP addresses, but there are no guarantees there, either.

-BP

That's a valid point I hadn't considered. 

Angel Eyes

  • Lying dog-faced pony soldier
  • friend
  • Senior Member
  • ***
  • Posts: 12,554
  • You're not diggin'
Re: Ignorant question on websites and IP addresses
« Reply #4 on: December 30, 2008, 05:22:02 PM »

That's the info I needed.  Thanks.

""If you elect me, your taxes are going to be raised, not cut."
                         - master strategist Joe Biden

mtnbkr

  • friend
  • Senior Member
  • ***
  • Posts: 15,388
Re: Ignorant question on websites and IP addresses
« Reply #5 on: December 30, 2008, 05:44:57 PM »
During some recent name resolution problems at work, I noticed sites like google even have different IPs served up based on the geographic location of the requester.  That made troubleshooting interesting.

Also, another way to get a site's IP is to open the command prompt as Nick suggested and use the nslookup command.  Type "nslookup www.example.com" and it will tell you what the IPs are.

Chris

GigaBuist

  • friends
  • Senior Member
  • ***
  • Posts: 4,345
    • http://www.justinbuist.org/blog/
Re: Ignorant question on websites and IP addresses
« Reply #6 on: December 30, 2008, 08:19:55 PM »
Quote
Type "nslookup www.example.com" and it will tell you what the IPs are.

That's the better way.  You'll see if they've got multiple A records in the zone that way.