Results 1 to 4 of 4

Thread: Behavior of nslookup

  1. #1
    Join Date
    Oct 2009
    Location
    California
    Beans
    Hidden!
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Behavior of nslookup

    So I was playing with nslookup on some bogus addresses, for a script.
    and I ended up getting some unexpected behavior.

    Code:
    IP="192.168.1.1"
    nslookup $IP
    Lookup failedServer: A_vaild_address*
    Address: A_vaild_address


    ** server can't find 1.1.168.192.in-addr.arpa.: NXDOMAIN

    The IP used in the NXDOMAIN field is backwards. Is this the normal convention for looking up domain names from IP's?

    *same results on different DNS servers
    User:To friend or not to friend--that is the question:
    Whether 'tis nobler to take an arrow to the knee or to suffer
    the slights and add's of outrageous fortune
    Or to take arms against a sea of trolls And by opposing feed them. www.evicsis.com

  2. #2
    Join Date
    Mar 2013
    Beans
    27

    Re: Behavior of nslookup

    It's normal. "in-addr.arpa" is special domain for reverse DNS, in the syntax field must be backwards.
    http://en.wikipedia.org/wiki/In-addr.arpa

  3. #3
    Join Date
    Oct 2009
    Location
    California
    Beans
    Hidden!
    Distro
    Ubuntu Studio 12.10 Quantal Quetzal

    Re: Behavior of nslookup

    Thank you for the help.
    User:To friend or not to friend--that is the question:
    Whether 'tis nobler to take an arrow to the knee or to suffer
    the slights and add's of outrageous fortune
    Or to take arms against a sea of trolls And by opposing feed them. www.evicsis.com

  4. #4
    Join Date
    Sep 2006
    Beans
    7,464
    Distro
    Lubuntu Development Release

    Re: Behavior of nslookup

    If you haven't seen it yet, there is also dig. It can do a lot more but is also good for basic lookups.

Tags for this Thread

Bookmarks

Posting Permissions

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