Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, could you tell me how to disable/enable access to a site and the steps to discover the ip of a site! Answer the quicker you can please! opensuser...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    Planet Earth
    Posts
    1

    firewall (iptables)


    Hi,
    could you tell me how to disable/enable access to a site and the steps to discover the ip of a site!
    Answer the quicker you can please!
    opensuser

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    Quote Originally Posted by opensuser View Post
    Hi,
    could you tell me how to disable/enable access to a site and the steps to discover the ip of a site!
    Answer the quicker you can please!
    opensuser
    To discover the IP address for a website simply ping it. To get Google's IP address you can:

    Code:
    kieren:/home/kieren# ping www.google.com
    PING www.l.google.com (74.125.19.103) 56(84) bytes of data.
    64 bytes from cf-in-f103.google.com (74.125.19.103): icmp_seq=1 ttl=244 time=214 ms
    64 bytes from cf-in-f103.google.com (74.125.19.103): icmp_seq=2 ttl=244 time=311 ms
    64 bytes from cf-in-f103.google.com (74.125.19.103): icmp_seq=3 ttl=244 time=268 ms
    64 bytes from cf-in-f103.google.com (74.125.19.103): icmp_seq=4 ttl=244 time=262 ms
    
    --- www.l.google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3003ms
    rtt min/avg/max/mdev = 214.905/264.344/311.633/34.291 ms
    This shows that Google's IP address is 74.125.19.103. However - large sites such as Google have many different IP address' to deal with many users accessing the site at the same time so it isn't very realistic to block a site by it's IP address.
    Linux User #453176

  3. #3
    Just Joined! praka123's Avatar
    Join Date
    Jan 2006
    Location
    Kerala,India
    Posts
    35
    nslookup google.com will help

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    848
    This might not get ALL the Google IPs, but only the ones the most local DNS server knows about
    Linux User #453176

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •